@@ -30,6 +30,11 @@ global:
30
30
matlabProductionServerSettings :
31
31
# CTF files are placed here for automatic deployment.
32
32
autoDeploy :
33
+ # Enable RESTful API for management of CTF 'Deployable Archives'
34
+ archivesApi :
35
+ enabled : false
36
+ storage : " 4Gi"
37
+ # _OR_
33
38
# Inline mount options: hostpath, nfs, pvc, azurefileshare, empty (default)
34
39
volumeType : " empty"
35
40
# Node mount dir, example: /mnt/share/autodeploy
@@ -49,6 +54,52 @@ matlabProductionServerSettings:
49
54
secretName : " "
50
55
# =================================================================
51
56
57
+ # CTF Access Control (OAuth2)
58
+ # https://www.mathworks.com/help/mps/server/access_control.html
59
+ # -------------------------------------------------------------
60
+ accessControl :
61
+ enabled : false
62
+ # -------------------------------------------------------------
63
+ identityProvider : |-
64
+ {
65
+ "version": "1.0.0",
66
+ "jwtIssuer": "URL of the authorization server that issued the JWT",
67
+ "appId": "String representing the application ID of the client",
68
+ "jwksUri": "URL of the authorization server public keys",
69
+ "jwksStrictSSL": false,
70
+ "jwksTimeOut": 120,
71
+ "userAttributeName": "email",
72
+ "groupAttributeName": "groups"
73
+ }
74
+ # -------------------------------------------------------------
75
+ policyRules : |-
76
+ {
77
+ "version": "1.0.0",
78
+ "policy" : [
79
+ {
80
+ "id": "policy1",
81
+ "description": "Access Control policy for MATLAB Production Server",
82
+ "rule": [
83
+ {
84
+ "id": "rule1",
85
+ "description": "Users that can execute/modify any deployable archive",
86
+ "subject": { "users": ["user1@example.com", "user2@example.com"] },
87
+ "resource": { "ctf": ["*"] },
88
+ "action": ["execute", "modify"]
89
+ },
90
+ {
91
+ "id": "rule2",
92
+ "description": "Groups that can execute a specific deployable archive",
93
+ "subject": { "groups": ["aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"] },
94
+ "resource": { "ctf": ["myModel"] },
95
+ "action": ["execute"]
96
+ }
97
+ ]
98
+ }
99
+ ]
100
+ }
101
+ # -------------------------------------------------------------
102
+
52
103
deploymentSettings :
53
104
replicaCount : 1
54
105
restartPolicy : Always
0 commit comments