Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release #327

Merged
merged 7 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### Build
FROM node:20.11.1-alpine3.19 as build
FROM node:22.2.0-alpine3.20 as build
ENV NO_UPDATE_NOTIFIER=true

USER node
Expand All @@ -13,7 +13,7 @@ RUN npm run build


### Deployment
FROM node:20.11.1-alpine3.19 as deployment
FROM node:22.2.0-alpine3.20 as deployment

ENV NO_UPDATE_NOTIFIER=true

Expand All @@ -22,6 +22,7 @@ ARG APP_HOME=/home/node/srv
WORKDIR $APP_HOME

COPY --chown=node:node ./cfg $APP_HOME/cfg/
COPY --chown=node:node ./data $APP_HOME/data/
COPY --chown=node:node --from=build $APP_HOME/lib/ $APP_HOME/lib/

EXPOSE 50051
Expand Down
12 changes: 5 additions & 7 deletions cfg/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,6 @@
"configUpdateResponse": {
"messageObject": "io.restorecommerce.commandinterface.CommandResponse"
},
"setApiKeyCommand": {
"messageObject": "io.restorecommerce.commandinterface.CommandRequest"
},
"setApiKeyResponse": {
"messageObject": "io.restorecommerce.commandinterface.CommandResponse"
},
"flushCacheCommand": {
"messageObject": "io.restorecommerce.commandinterface.CommandRequest"
},
Expand Down Expand Up @@ -176,7 +170,6 @@
"restoreCommand",
"resetCommand",
"configUpdateCommand",
"setApiKeyCommand",
"flushCacheCommand"
]
},
Expand Down Expand Up @@ -315,5 +308,10 @@
"entities": ["rules", "policies", "policy_sets"]
}
]
},
"seed_data": {
"policy_set" : "./data/seed_data/policy_sets.yaml",
"policy": "./data/seed_data/policies.yaml",
"rule": "./data/seed_data/rules.yaml"
}
}
14 changes: 14 additions & 0 deletions data/seed_data/policies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- id: super_admin_policy_id
name: Super Admin Policy
description: Targets actions for all resources
rules:
- super_admin_rule_id
combining_algorithm: urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-overrides
evaluation_cacheable: true
meta:
owners:
- id: urn:restorecommerce:acs:names:ownerIndicatoryEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:ownerInstance
value: system
13 changes: 13 additions & 0 deletions data/seed_data/policy_sets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- id: global_policy_set_id
name: Global Policy Set
description: Contains SuperAdmin policy
combining_algorithm: urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-overrides
policies:
- super_admin_policy_id
meta:
owners:
- id: urn:restorecommerce:acs:names:ownerIndicatoryEntity
value: urn:bmslsa:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:ownerInstance
value: system
16 changes: 16 additions & 0 deletions data/seed_data/rules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- id: super_admin_rule_id
name: SuperAdmins Rule
description: Permit anything for Super Admins
target:
subjects:
- id: urn:restorecommerce:acs:names:role
value: superadministrator-r-id
effect: PERMIT
evaluation_cacheable: true
meta:
owners:
- id: urn:restorecommerce:acs:names:ownerIndicatoryEntity
value: urn:bmslsa:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:ownerInstance
value: system
Loading
Loading