-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat!: add support for session secrets #545
Draft
leafty
wants to merge
7
commits into
main
Choose a base branch
from
build/session-secrets
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
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
leafty
force-pushed
the
build/session-secrets
branch
from
December 6, 2024 09:02
d4d85bd
to
ec4cbe1
Compare
Add support for session secret slots which describe files with secret contents to be mounted in sessions. Session secret slots exist at the project level and can be managed by users with at the `WRITE` permission on the project. Session secrets can be used by all users with the `READ` permission on the project.
Add support for session secrets which connect a project's session secret slots to user secrets. Session secrets can be used by all users with the `READ` permission on the project. --------- Co-authored-by: Tasko Olevski <[email protected]>
Add support for mounting user secrets in sessions according to the project's session secret slots.
…537) Add support for multiple names in `key_mapping` when creating a kubernetes secret. This allows the same user secret to be supplied more than once in sessions. --------- Co-authored-by: Ralf Grubenmann <[email protected]>
Re-work user secrets to make them more usable in Renku 2.0. Changes: * Change the `name` field to be `default_filename`. This field is only meaningful in the context of Renku 1.0. * Add a new `name` field (which does not have constraints) to let users name their secrets, e.g. "AWS Secret Key ID for Project XYZ". * User secret objects now include back references to Session secret slots and Data connectors -> `session_secret_slot_ids` and `data_connector_ids` fields returned from the API. * The `UserSecretsRepo` class has been split into `LowLevelUserSecretsRepo` and `UserSecretsRepo`. `LowLevelUserSecretsRepo` is used internally, e.g. for key rotation and `UserSecretsRepo` is used for the `UserSecretsBP` blueprint.
leafty
force-pushed
the
build/session-secrets
branch
from
December 9, 2024 10:36
ec4cbe1
to
a566df5
Compare
Add a new field `secrets_mount_directory` to projects, which allows user to configure where secrets are mounted in sessions.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Feature branch. Closes #509.
Details:
key_mapping
when creating a kubernetes secret. This allows the same user secret to be supplied more than once in sessions.name
field to bedefault_filename
. This field is only meaningful in the context of Renku 1.0.name
field (which does not have constraints) to let users name their secrets, e.g. "AWS Secret Key ID for Project XYZ".session_secret_slot_ids
anddata_connector_ids
fields returned from the API.UserSecretsRepo
class has been split intoLowLevelUserSecretsRepo
andUserSecretsRepo
.LowLevelUserSecretsRepo
is used internally, e.g. for key rotation andUserSecretsRepo
is used for theUserSecretsBP
blueprintContent: