-
Notifications
You must be signed in to change notification settings - Fork 0
refact: support secrets from env vars and include vault namespace header #45
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
4b92db6
refact: support secrets from env vars and include vault namespace header
v-rocheleau 40943f9
format
v-rocheleau 639be74
Fix method call
daisieh 6c05da2
Merge branch 'main' into refact/secrets-env-vars
v-rocheleau 6550644
fix(gh-actions/pr-build): repo lower casefor image name
v-rocheleau 18f4522
fix pr build image name
v-rocheleau 0c38a6b
explicit ghcr image name for consictency
v-rocheleau a06dd86
build pr images to repo package path
v-rocheleau 69361c6
refact: copy permissions engine files to dir that can be safely shared
v-rocheleau 1de505c
fix permissions engine dir name
v-rocheleau 16de84f
recursive copy of permissions engine files
v-rocheleau 5a9a946
init policies dirs and permissions
v-rocheleau a5915c7
fix permissions engine path copy
v-rocheleau c1137ea
fix copying of permissions engine files again
v-rocheleau 607ad69
rm root token usage in renew_token
v-rocheleau 0da6d1f
logging for secret id retrieval debug
v-rocheleau 834b934
debug logs
v-rocheleau f6c368f
rm debug logs
v-rocheleau 063bf2c
comment out test roleid
v-rocheleau fbf6d4c
include namespace in token renewal script
v-rocheleau dff3bfb
add missing vault namespace header
v-rocheleau 4ceee96
refact(rego): customize vault.rego to include namespace headers
v-rocheleau ee5b7f4
sed vault namespace in entrypoint
v-rocheleau dcc7787
fix rego syntax err
v-rocheleau b5c0e3c
rego syntax
v-rocheleau 0aa4ef9
rego syntax fixes
v-rocheleau 5e82a14
more rego syntax fixes
v-rocheleau ce1fb72
rego syntax fix with parenthesis wrap
v-rocheleau f043069
rego syntax fix attempt
v-rocheleau ee6b053
rego syntax fix again
v-rocheleau 2421ec5
sed vault ns
v-rocheleau cb7a63d
cleanup
v-rocheleau 464eb13
rm redundant authz prefix
v-rocheleau 854c1ee
fix pr build workflow
v-rocheleau ac8ae29
set default vault namespace for docker compose and tests
v-rocheleau b763264
tests fix attempt
v-rocheleau f79e262
change permissions-engine to permissions_engine
daisieh 4daeeab
Update app/src/auth.py
daisieh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not super familiar with rego, so I would like to know your opinion on the best way to do this @daisieh .
The name of the Vault namespace will be set as an environment variable
VAULT_NAMESPACEin the container.When the env var is present, we simply need to add its value in the
X-Vault-Namespaceheader.