@balena/open-balena-api 27.2.3 → 27.2.4-build-deprecated-pinejs-client-b062485f870049879cbd123a005ecb5e8e1809a2-1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/features/api-keys/lib.js +2 -1
- package/dist/features/api-keys/lib.js.map +1 -1
- package/dist/features/device-logs/lib/store.js +9 -7
- package/dist/features/device-logs/lib/store.js.map +1 -1
- package/dist/features/device-proxy/device-proxy.js +2 -1
- package/dist/features/device-proxy/device-proxy.js.map +1 -1
- package/dist/features/host-os-access/access.js +2 -1
- package/dist/features/host-os-access/access.js.map +1 -1
- package/dist/features/registry/registry.js +2 -1
- package/dist/features/registry/registry.js.map +1 -1
- package/dist/features/vpn/services.js +9 -7
- package/dist/features/vpn/services.js.map +1 -1
- package/package.json +2 -2
@@ -20,7 +20,8 @@ const $createApiKey = async (actorType, roleName, req, actorTypeID, { apiKey, tx
|
|
20
20
|
if (actorID == null) {
|
21
21
|
throw new Error(`No ${actorType} found to associate with the api key`);
|
22
22
|
}
|
23
|
-
const res = await api.resin.
|
23
|
+
const res = await api.resin.request({
|
24
|
+
method: 'POST',
|
24
25
|
url: `${actorType}(${actorTypeID})/canAccess`,
|
25
26
|
passthrough: { req, tx },
|
26
27
|
body: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../../src/features/api-keys/lib.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,cAAc,CAAC;AACxC,OAAO,CAAC,MAAM,QAAQ,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,MAAM,EAAE,G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AAY,GAAG,GAAG,CAAC;IAEvB,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC1B,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC5B,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC;SAAM,IAAI,YAAY,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC;QAC7C,2DAA2D;QAC3D,0DAA0D;QAC1D,4DAA4D;QAC5D,YAAY,CAAC,MAAM,CAAC,WAAW,GAAG,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACxE,CAAC;IAED,YAAY,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,GAAG,gBAAgB,CAAC,CAAC;IAC5D,OAAO,YAAY,CAAC;AACrB,CAAC,CAAC"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import _ from 'lodash';
|
2
1
|
import onFinished from 'on-finished';
|
3
2
|
import { sbvrUtils, errors } from '@balena/pinejs';
|
4
3
|
import { Supervisor } from './supervisor.js';
|
@@ -12,15 +11,18 @@ const { UnauthorizedError, ServiceUnavailableError, UnsupportedMediaTypeError, }
|
|
12
11
|
const { api } = sbvrUtils;
|
13
12
|
const supervisor = new Supervisor();
|
14
13
|
const getWriteContext = (() => {
|
15
|
-
const authQuery =
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
const authQuery = async ({ uuid }, passthrough) => {
|
15
|
+
return await api.resin.request({
|
16
|
+
method: 'POST',
|
17
|
+
url: `device(uuid=@uuid)/canAccess?@uuid='${uuid}'`,
|
18
|
+
passthrough,
|
19
|
+
body: { action: 'write-log' },
|
20
|
+
});
|
21
|
+
};
|
20
22
|
const $getWriteContext = multiCacheMemoizee(async (uuid, req) => {
|
21
23
|
return await sbvrUtils.db.readTransaction(async (tx) => {
|
22
24
|
try {
|
23
|
-
const result = await authQuery(
|
25
|
+
const result = await authQuery({ uuid }, { req, tx });
|
24
26
|
const deviceId = result?.d?.[0]?.id;
|
25
27
|
if (deviceId == null) {
|
26
28
|
return false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/store.ts"],"names":[],"mappings":"AAQA,OAAO,
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/store.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACN,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,YAAY,EACZ,mBAAmB,GACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EACN,oCAAoC,EACpC,uCAAuC,EACvC,0BAA0B,EAC1B,uBAAuB,EACvB,YAAY,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,kBAAkB,EAClB,uBAAuB,GACvB,MAAM,+BAA+B,CAAC;AAGvC,MAAM,EACL,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,GACzB,GAAG,MAAM,CAAC;AACX,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;AAEpC,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE;IAC7B,MAAM,SAAS,GAAG,KAAK,EACtB,EAAE,IAAI,EAAoB,EAC1B,WAAmC,EAClC,EAAE;QACH,OAAO,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CA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AM,CAAC,CAAC,CAAC,CAAC,SAAS;wBAC9B,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;wBAC9B,QAAQ,EAAE,IAAI;wBACd,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,uBAAuB,WAAW,kCAAkC;qBAC7E,CAAC,CAAC;gBACJ,CAAC;gBACD,4DAA4D;gBAC5D,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;gBAC5D,mBAAmB;gBACnB,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;gBAClB,gDAAgD;gBAChD,IAAI,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;oBACpB,GAAG,CAAC,MAAM,EAAE,CAAC;gBACd,CAAC;gBACD,kCAAkC;gBAClC,MAAM,cAAc,CAAC;YACtB,CAAC;YACD,gBAAgB,GAAG,KAAK,CAAC;YAEzB,wEAAwE;YACxE,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACvB,QAAQ,EAAE,CAAC;YACZ,CAAC;QACF,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACd,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QAClC,CAAC;IACF,CAAC;IACD,SAAS,QAAQ;QAChB,IAAI,gBAAgB,KAAK,KAAK,EAAE,CAAC;YAChC,OAAO;QACR,CAAC;QACD,8DAA8D;QAC9D,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS;YAC9B,CAAC,CAAC,0BAA0B;YAC5B,CAAC,CAAC,uCAAuC,CAAC;QAC3C,UAAU,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QAC9B,gBAAgB,GAAG,IAAI,CAAC;IACzB,CAAC;AACF,CAAC"}
|
@@ -137,7 +137,8 @@ async function requestDevices({ url, filter, data, req, wait = true, method = 'P
|
|
137
137
|
// internal operation of the platform.
|
138
138
|
if (method !== 'GET' && req !== permissions.root) {
|
139
139
|
await Promise.all(deviceIds.map(async (deviceId) => {
|
140
|
-
const res = (await resinApi.
|
140
|
+
const res = (await resinApi.request({
|
141
|
+
method: 'POST',
|
141
142
|
url: `device(${deviceId})/canAccess`,
|
142
143
|
body: { action: 'update' },
|
143
144
|
}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"device-proxy.js","sourceRoot":"","sources":["../../../src/features/device-proxy/device-proxy.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGhE,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACN,uBAAuB,EACvB,sBAAsB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,kGAAkG;AAClG,oEAAoE;AACpE,MAAM,sBAAsB,GAAG,KAAK,CAAC;AAErC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAExC,MAAM,EAAE,eAAe,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;AAClD,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,qBAAqB,GAAG,CAC7B,GAAY,EACZ,GAAa,EACb,MAAc,EACd,MAAc,EACb,EAAE;IACH,gBAAgB;IAChB,MAAM,GAAG,GAAG,IAAI,KAAK,CACpB,GAAG,MAAM,aAAa,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,GAAG,CAAC,WAAW,GAAG,CACzE,CAAC;IACF,gBAAgB,CAAC,GAAG,EAAE,sCAAsC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,C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(req, res) {
|
|
23
23
|
return;
|
24
24
|
}
|
25
25
|
try {
|
26
|
-
const allowedDevices = (await api.resin.
|
26
|
+
const allowedDevices = (await api.resin.request({
|
27
|
+
method: 'POST',
|
27
28
|
url: `device(${device.id})/canAccess`,
|
28
29
|
passthrough: {
|
29
30
|
req,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"access.js","sourceRoot":"","sources":["../../../src/features/host-os-access/access.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAEvE,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAC;AACrC,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAEzC,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,GAAY,EAAE,GAAa;IAC7D,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;QAClC,QAAQ,EAAE,QAAQ;QAClB,EAAE,EAAE;YACH,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC;SAC/B;QACD,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC;SAC7B;QACD,WAAW,EAAE;YACZ,GAAG;SACH;KACD,CAAC,CAAC;IAEH,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;QACpB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;QACtB,OAAO;IACR,CAAC;IAED,IAAI,CAAC;QACJ,MAAM,cAAc,GAAG,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,
|
1
|
+
{"version":3,"file":"access.js","s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-127,7 +127,8 @@ const resolveWriteAccess = async (req, imageId, tx) => {
|
|
127
127
|
return false;
|
128
128
|
}
|
129
129
|
try {
|
130
|
-
const res = await api.resin.
|
130
|
+
const res = await api.resin.request({
|
131
|
+
method: 'POST',
|
131
132
|
url: `image(${imageId})/canAccess`,
|
132
133
|
passthrough: { req, tx },
|
133
134
|
body: { action: 'push' },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/features/registry/registry.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,6DAA6D;AAG7D,OAAO,YAAY,MAAM,cAAc,CAAC;AACxC,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EACN,kBAAkB,EAClB,uBAAuB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,YAAY,IAAI,IAAI,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EACN,0BAA0B,EAC1B,yBAAyB,EACzB,cAAc,EACd,8BAA8B,EAC9B,oCAAoC,EACpC,uCAAuC,EACvC,wBAAwB,GACxB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAC;AACrC,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,0DAA0D;AAC1D,kDAAkD;AAClD,MAAM,oBAAoB,GAAG,GAAG,CAAC,CAAC,UAAU;AAE5C,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAC3C,MAAM,uBAAuB,GAAG,uCAAuC,CAAC;AAExE,4BAA4B;AAC5B,MAAM,kBAAkB,GAAG,8CAA8C,CAAC;AAE1E;;;;;;;GAOG;AACH,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E,CAAC;SACP;KACD,CAAC,CAAC;IACH,IAAI,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;AACF,CAAC,EACD;IACC,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,yBAAyB;IACjC,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,GAAG,MAAM,SAAS,OAAO,EAAE;CAC9D,CACD,CAAC;AACF,MAAM,UAAU,GAAG,KAAK,EACvB,GAAY,EACZ,EAAM,EACwB,EAAE;IAChC,IAAI,GAAG,CAAC,MAAM,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;QAC9D,OAAO,MAAM,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;SAAM,IAAI,GAAG,CAAC,IAAI,IAAI,IAAI,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;QACzC,6FAA6F;QAC7F,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;YAChC,QAAQ,EAAE,MAAM;YAChB,WAAW,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;YACxB,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE;YACf,OAAO,EAAE;gBACR,OAAO,EAAE,UAAU;aACnB;SACD,CAAC,CAAC;QACH,OAAO,IAAI,EAAE,QAAQ,CAAC;IACvB,CAAC;AACF,CAAC,CAAC"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import _ from 'lodash';
|
2
1
|
import { sbvrUtils, errors } from '@balena/pinejs';
|
3
2
|
import { captureException, handleHttpErrors, translateError, } from '../../infra/error-handling/index.js';
|
4
3
|
import { multiCacheMemoizee, reqPermissionNormalizer, } from '../../infra/cache/index.js';
|
@@ -6,14 +5,17 @@ import { VPN_AUTH_CACHE_TIMEOUT } from '../../lib/config.js';
|
|
6
5
|
import { checkDeviceExistsIsFrozen } from '../device-state/middleware.js';
|
7
6
|
const { api } = sbvrUtils;
|
8
7
|
const checkAuth = (() => {
|
9
|
-
const authQuery =
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
const authQuery = async ({ uuid }, passthrough) => {
|
9
|
+
return await api.resin.request({
|
10
|
+
method: 'POST',
|
11
|
+
url: `device(uuid=@uuid)/canAccess?@uuid='${uuid}'`,
|
12
|
+
passthrough,
|
13
|
+
body: { action: 'cloudlink' },
|
14
|
+
});
|
15
|
+
};
|
14
16
|
return multiCacheMemoizee(async (uuid, req) => {
|
15
17
|
try {
|
16
|
-
await authQuery(
|
18
|
+
await authQuery({ uuid }, {
|
17
19
|
req,
|
18
20
|
});
|
19
21
|
return 200;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"services.js","sourceRoot":"","sources":["../../../src/features/vpn/services.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"services.js","sourceRoot":"","sources":["../../../src/features/vpn/services.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACN,kBAAkB,EAClB,uBAAuB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG1E,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE;IACvB,MAAM,SAAS,GAAG,KAAK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CAAC,CAAC;QACH,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;IACvB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,gBAAgB,CAAC,GAAG,EAAE,kCAAkC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;QACnE,IAAI,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;YACrC,OAAO;QACR,CAAC;QACD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,CAAC;AACF,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@balena/open-balena-api",
|
3
3
|
"description": "Internet of things, Made Simple",
|
4
|
-
"version": "27.2.
|
4
|
+
"version": "27.2.4-build-deprecated-pinejs-client-b062485f870049879cbd123a005ecb5e8e1809a2-1",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -168,6 +168,6 @@
|
|
168
168
|
"loader": "ts-node/esm/transpile-only"
|
169
169
|
},
|
170
170
|
"versionist": {
|
171
|
-
"publishedAt": "2024-09-
|
171
|
+
"publishedAt": "2024-09-16T13:01:07.372Z"
|
172
172
|
}
|
173
173
|
}
|