-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(jans-cedarling): implement environment variable loading for side…
…car (#10751) * feat(jans-cedarling): better sidecar logger Signed-off-by: SafinWasi <[email protected]> * chore: add bootstrap fix Signed-off-by: SafinWasi <[email protected]> * feat(jans-cedarling): update to use env variables Signed-off-by: SafinWasi <[email protected]> * feat(jans-cedarling): print out authz decision Signed-off-by: SafinWasi <[email protected]> * chore: remove prints Signed-off-by: SafinWasi <[email protected]> * feat(jans-cedarling): add dockerfile fixes Signed-off-by: SafinWasi <[email protected]> * docs(jans-cedarling): update readme Signed-off-by: SafinWasi <[email protected]> * chore: update sha Signed-off-by: SafinWasi <[email protected]> * style: move commands of one step in one code block Signed-off-by: Mohammad Abudayyeh <[email protected]> --------- Signed-off-by: SafinWasi <[email protected]> Signed-off-by: Mohammad Abudayyeh <[email protected]> Co-authored-by: Mohammad Abudayyeh <[email protected]>
- Loading branch information
Showing
10 changed files
with
245 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
services: | ||
sidecar: | ||
image: flask-sidecar | ||
build: ./ | ||
restart: always | ||
ports: | ||
- "5000:5000" | ||
environment: | ||
- FLASK_APP=main.core:app | ||
- APP_MODE=${APP_MODE:-development} | ||
- CEDARLING_BOOTSTRAP_CONFIG_FILE=None | ||
- CEDARLING_APPLICATION_NAME=${CEDARLING_APPLICATION_NAME:-None} | ||
- CEDARLING_POLICY_STORE_URI=${CEDARLING_POLICY_STORE_URI:-None} | ||
- CEDARLING_POLICY_STORE_ID=${CEDARLING_POLICY_STORE_ID:-None} | ||
- CEDARLING_USER_AUTHZ=${CEDARLING_USER_AUTHZ:-enabled} | ||
- CEDARLING_WORKLOAD_AUTHZ=${CEDARLING_WORKLOAD_AUTHZ:-enabled} | ||
- CEDARLING_USER_WORKLOAD_BOOLEAN_OPERATION=${CEDARLING_USER_WORKLOAD_BOOLEAN_OPERATION:-AND} | ||
- CEDARLING_LOG_TYPE=${CEDARLING_LOG_TYPE:-memory} | ||
- CEDARLING_LOG_LEVEL=${CEDARLING_LOG_LEVEL:-WARN} | ||
- CEDARLING_ID_TOKEN_TRUST_MODE=${CEDARLING_ID_TOKEN_TRUST_MODE:-strict} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
services: | ||
sidecar: | ||
image: flask-sidecar | ||
build: ./ | ||
restart: always | ||
ports: | ||
- "5000:5000" | ||
volumes: | ||
- type: bind | ||
source: ./secrets/bootstrap.json | ||
target: /bootstrap.json | ||
environment: | ||
- FLASK_APP=main.core:app | ||
- APP_MODE=${APP_MODE:-development} | ||
- SIDECAR_DEBUG_RESPOSE=${SIDECAR_DEBUG_RESPOSE:-False} | ||
- CEDARLING_BOOTSTRAP_CONFIG_FILE=/bootstrap.json |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.