Skip to content

Commit

Permalink
chore(jans-cedarling): update schema for role principals (#10395)
Browse files Browse the repository at this point in the history
* chore(jans-cedarling): update schema for role principals

Signed-off-by: SafinWasi <[email protected]>

* chore(jans-cedarling): use current folder for docker

Signed-off-by: SafinWasi <[email protected]>

* chore: restore dockerfile

Signed-off-by: SafinWasi <[email protected]>

---------

Signed-off-by: SafinWasi <[email protected]>
  • Loading branch information
SafinWasi authored Dec 12, 2024
1 parent e823bf7 commit 2e9afdc
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 21 deletions.
2 changes: 1 addition & 1 deletion jans-cedarling/flask-sidecar/secrets/bootstrap.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"CEDARLING_LOCK": "disabled",
"CEDARLING_LOCK_MASTER_CONFIGURATION_URI": null,
"CEDARLING_DYNAMIC_CONFIGURATION": "disabled",
"CEDARLING_LOCK_SSA_JWT": 0,
"CEDARLING_LOCK_SSA_JWT": "",
"CEDARLING_AUDIT_HEALTH_INTERVAL": 0,
"CEDARLING_AUDIT_TELEMETRY_INTERVAL": 0,
"CEDARLING_LISTEN_SSE": "disabled"
Expand Down
20 changes: 10 additions & 10 deletions jans-cedarling/schema/cedarling_core.cedarschema
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ namespace Jans {
aud: String,
birthdate?: String,
email?: email_address,
exp: Long,
iat: Long,
exp?: Long,
iat?: Long,
iss: TrustedIssuer,
jti?: String,
name?: String,
Expand All @@ -90,42 +90,42 @@ namespace Jans {

// ****** Actions ******
action Compare appliesTo {
principal: [User, Workload],
principal: [User, Workload, Role],
resource: [Application],
context: Context
};
action Execute appliesTo {
principal: [User, Workload],
principal: [User, Workload, Role],
resource: [Application],
context: Context
};
action Monitor appliesTo {
principal: [User, Workload],
principal: [User, Workload, Role],
resource: [Application],
context: Context
};
action Read appliesTo {
principal: [User, Workload],
principal: [User, Workload, Role],
resource: [Application],
context: Context
};
action Search appliesTo {
principal: [User, Workload],
principal: [User, Workload, Role],
resource: [Application],
context: Context
};
action Share appliesTo {
principal: [User, Workload],
principal: [User, Workload, Role],
resource: [Application],
context: Context
};
action Tag appliesTo {
principal: [User, Workload],
principal: [User, Workload, Role],
resource: [Application],
context: Context
};
action Write appliesTo {
principal: [User, Workload],
principal: [User, Workload, Role],
resource: [Application],
context: Context
};
Expand Down
30 changes: 20 additions & 10 deletions jans-cedarling/schema/cedarling_core.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,13 @@
},
"exp": {
"type": "EntityOrCommon",
"name": "Long"
"name": "Long",
"required": false
},
"iat": {
"type": "EntityOrCommon",
"name": "Long"
"name": "Long",
"required": false
},
"iss": {
"type": "EntityOrCommon",
Expand Down Expand Up @@ -397,7 +399,8 @@
],
"principalTypes": [
"User",
"Workload"
"Workload",
"Role"
],
"context": {
"type": "Context"
Expand All @@ -424,7 +427,8 @@
],
"principalTypes": [
"User",
"Workload"
"Workload",
"Role"
],
"context": {
"type": "Context"
Expand Down Expand Up @@ -464,7 +468,8 @@
],
"principalTypes": [
"User",
"Workload"
"Workload",
"Role"
],
"context": {
"type": "Context"
Expand Down Expand Up @@ -504,7 +509,8 @@
],
"principalTypes": [
"User",
"Workload"
"Workload",
"Role"
],
"context": {
"type": "Context"
Expand All @@ -518,7 +524,8 @@
],
"principalTypes": [
"User",
"Workload"
"Workload",
"Role"
],
"context": {
"type": "Context"
Expand All @@ -532,7 +539,8 @@
],
"principalTypes": [
"User",
"Workload"
"Workload",
"Role"
],
"context": {
"type": "Context"
Expand All @@ -546,7 +554,8 @@
],
"principalTypes": [
"User",
"Workload"
"Workload",
"Role"
],
"context": {
"type": "Context"
Expand All @@ -560,7 +569,8 @@
],
"principalTypes": [
"User",
"Workload"
"Workload",
"Role"
],
"context": {
"type": "Context"
Expand Down

0 comments on commit 2e9afdc

Please sign in to comment.