@balena/open-balena-api 31.2.9-build-move-device-service-propagate-hook-a98dfded52b515150f825e9c7b85f9c0f33e16e9-1 → 31.2.9-build-resolve-dsev-permission-with-device-2dc23ee89aaea920572df3ffabc06fa8fe5770e8-1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/auth.js +2 -2
- package/dist/lib/auth.js.map +1 -1
- package/package.json +2 -2
package/dist/lib/auth.js
CHANGED
@@ -81,8 +81,8 @@ export const DEVICE_API_KEY_PERMISSIONS = [
|
|
81
81
|
// A device should be able to manage its own service installs, even from apps its not or no longer part of (past/supervisor/os)
|
82
82
|
...writePerms('resin.service_install', `device/any(d:${matchesNonFrozenDeviceActor('d')})`, ['update', 'delete']),
|
83
83
|
'resin.service_environment_variable.read?service/canAccess()',
|
84
|
-
'resin.device_service_environment_variable.read?
|
85
|
-
...writePerms('resin.device_service_environment_variable', `
|
84
|
+
'resin.device_service_environment_variable.read?device/canAccess()',
|
85
|
+
...writePerms('resin.device_service_environment_variable', `device/any(d:${matchesNonFrozenDeviceActor('d')})`),
|
86
86
|
'resin.image__is_part_of__release.read?is_part_of__release/canAccess()',
|
87
87
|
'resin.image.read?image_install/canAccess() or image__is_part_of__release/canAccess()',
|
88
88
|
'resin.image_install.read?device/canAccess()',
|
package/dist/lib/auth.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/lib/auth.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,8DAA8D;AAC9D,EAAE;AAIF,OAAO,EACN,uBAAuB,EACvB,gCAAgC,EAChC,iBAAiB,EACjB,mBAAmB,GACnB,MAAM,aAAa,CAAC;AAErB,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAC;AAElE,MAAM,UAAU,GAAG,CAClB,QAAgB,EAChB,MAAc,EACd,SAA4D,iBAAiB,EAClE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAA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, Made Simple",
|
4
|
-
"version": "31.2.9-build-
|
4
|
+
"version": "31.2.9-build-resolve-dsev-permission-with-device-2dc23ee89aaea920572df3ffabc06fa8fe5770e8-1",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -166,6 +166,6 @@
|
|
166
166
|
"loader": "ts-node/esm/transpile-only"
|
167
167
|
},
|
168
168
|
"versionist": {
|
169
|
-
"publishedAt": "2024-11-19T23:
|
169
|
+
"publishedAt": "2024-11-19T23:57:47.310Z"
|
170
170
|
}
|
171
171
|
}
|