@@ -30,6 +30,11 @@ global:
3030matlabProductionServerSettings :
3131 # CTF files are placed here for automatic deployment.
3232 autoDeploy :
33+ # Enable RESTful API for management of CTF 'Deployable Archives'
34+ archivesApi :
35+ enabled : false
36+ storage : " 4Gi"
37+ # _OR_
3338 # Inline mount options: hostpath, nfs, pvc, azurefileshare, empty (default)
3439 volumeType : " empty"
3540 # Node mount dir, example: /mnt/share/autodeploy
@@ -49,6 +54,52 @@ matlabProductionServerSettings:
4954 secretName : " "
5055 # =================================================================
5156
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+ 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+
52103deploymentSettings :
53104 replicaCount : 1
54105 restartPolicy : Always
0 commit comments