-
Notifications
You must be signed in to change notification settings - Fork 0
/
scs-users.yaml
48 lines (48 loc) · 1.31 KB
/
scs-users.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
type: array
minitems: 1
items:
type: object
description: Definition of a single user
required:
- id
- token
- has_access
additionalProperties: false
properties:
id:
type: string
description:
Unique identifier for the user. This is used inside the access logs
token:
type: string
description:
Authentication token that the user needs to use to connect with
has_access:
description:
Configuration defining the access contraints of the user (using
whitelists)
type: object
required:
- to_paths
- from_networks
additionalProperties: false
properties:
to_paths:
type: array
description:
The paths a user has access to, e.g. '/configs/*' to access
all configuration files
items:
type: string
description:
The path to which a user is allowed access. You can add '*'
as a wildcard
from_networks:
type: array
description:
The networks from which a user is allowed to access the server.
items:
type: string
description:
Either a IP address (127.0.0.1) or a subnet in CIDR notation
(192.168.1.0/24)