Skip to content

Commit 83dd829

Browse files
committed
R2025a Prerelease: CTF Management API - Initial Commit
1 parent f90a140 commit 83dd829

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

releases/R2025a/matlab-prodserver/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ matlabProductionServerSettings:
2929
# Enable RESTful API for management of CTF 'Deployable Archives'
3030
archivesApi:
3131
enabled: false
32-
storage: "10Gi"
32+
storage: "4Gi"
33+
# _OR_
3334
# Inline mount options: hostpath, nfs, pvc, azurefileshare, empty (default)
3435
volumeType: "empty"
3536
# Node mount dir, example: /mnt/share/autodeploy

values-overrides.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ global:
3030
matlabProductionServerSettings:
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+
"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+
52103
deploymentSettings:
53104
replicaCount: 1
54105
restartPolicy: Always

0 commit comments

Comments
 (0)