forked from balena-io/open-balena-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
28 lines (27 loc) · 1.3 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import type { ConfigLoader } from '@balena/pinejs';
import * as balenaModel from './src/balena';
export = {
models: [balenaModel],
users: [
{
username: 'guest',
password: ' ',
permissions: [
// core model permissions
'resin.cpu_architecture.read',
'resin.device_type.read',
'resin.device_type_alias.read',
'resin.device_family.read',
'resin.device_manufacturer.read',
// public application & hostApp permissions
'resin.application.read?is_public eq true and is_for__device_type/canAccess()',
'resin.release.read?belongs_to__application/any(a:a/is_public eq true and is_for__device_type/canAccess())',
'resin.service.read?application/any(a:a/is_public eq true and is_for__device_type/canAccess())',
`resin.image.read?is_a_build_of__service/any(s:s/application/any(a:a/is_public eq true and is_for__device_type/canAccess()))`,
'resin.application_tag.read?application/any(a:a/is_public eq true and is_for__device_type/canAccess())',
'resin.release_tag.read?release/any(r:r/belongs_to__application/any(a:a/is_public eq true and is_for__device_type/canAccess()))',
`resin.image__is_part_of__release.read?is_part_of__release/any(r:r/belongs_to__application/any(a:a/is_public eq true and is_for__device_type/canAccess()))`,
],
},
],
} as ConfigLoader.Config;