@@ -46,6 +46,49 @@ matlabProductionServerSettings:
46
46
# =================================================================
47
47
# Maximum number of worker processes (per pod).
48
48
numWorkers : 2
49
+ #
50
+ # CTF Access Control (OAuth2)
51
+ # https://www.mathworks.com/help/mps/server/access_control.html
52
+ # -------------------------------------------------------------
53
+ accessControl :
54
+ enabled : false
55
+ identityProvider : |-
56
+ {
57
+ "version": "1.0.0",
58
+ "jwtIssuer": "URL of the authorization server that issued the JWT",
59
+ "appId": "String representing the application ID of the client",
60
+ "jwksUri": "URL of the authorization server public keys",
61
+ "jwksStrictSSL": false,
62
+ "jwksTimeOut": 120,
63
+ "userAttributeName": "email",
64
+ "groupAttributeName": "groups"
65
+ }
66
+ policyRules : |-
67
+ {
68
+ "version": "1.0.0",
69
+ "policy" : [
70
+ {
71
+ "id": "policy1",
72
+ "description": "Access Control policy for MATLAB Production Server",
73
+ "rule": [
74
+ {
75
+ "id": "rule1",
76
+ "description": "Users that can execute/modify any deployable archive",
77
+
78
+ "resource": { "ctf": ["*"] },
79
+ "action": ["execute", "modify"]
80
+ },
81
+ {
82
+ "id": "rule2",
83
+ "description": "Groups that can execute a specific deployable archive",
84
+ "subject": { "groups": ["aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"] },
85
+ "resource": { "ctf": ["myModel"] },
86
+ "action": ["execute"]
87
+ }
88
+ ]
89
+ }
90
+ ]
91
+ }
49
92
# ----------------------------------------------------
50
93
# Log to pod-local file-system (in addition to stdout)
51
94
localFileLogging : false
0 commit comments