-
Notifications
You must be signed in to change notification settings - Fork 92
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
Tsa secret optional for tuf #744
Merged
cpanato
merged 16 commits into
sigstore:main
from
cvegagimenez:tsa-secret-optional-for-tuf
Oct 14, 2024
Merged
Changes from 2 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e413ede
Make optional the secret TSA secret reference for TUF chart
cvegagimenez d156f58
Bump TUF chart version to 0.1.13
cvegagimenez 106dbea
Renamed Values.secrets.tsa.existingSecret to Values.secrets.tsa.enabled
cvegagimenez f2346b7
Regenerated docs
cvegagimenez e54a0b3
Added enabled value for secrets defined in tuf
cvegagimenez 55c4421
Merge branch 'main' into tsa-secret-optional-for-tuf
cvegagimenez 89630d3
Merge branch 'main' into tsa-secret-optional-for-tuf
cvegagimenez 0bd3586
Avoid creating Tuf objects if there is no secrets
cvegagimenez 46a4a82
Added validation to ensure at least one secret is provided to TUF
cvegagimenez db6ba2b
Enabled secret as default for TUF
cvegagimenez 91c9839
Bump version to 0.1.19
cvegagimenez c716603
Helm Docs for TUF
cvegagimenez e8c7d53
Added new lines
cvegagimenez 62f5ded
Merge branch 'main' into tsa-secret-optional-for-tuf
cvegagimenez 71247bc
Helm Docs for TUF
cvegagimenez 88f2633
Restored NodeSelector, Tolerations and Affinity
cvegagimenez 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 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
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
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.
Why not make this
enabled
and set astrue
. Ifsecrets.tsa.create
istrue
, a new secret will be created. Otherwise,secrets.tsa.name
is the name of the existing secretThere 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.
I implemented the changes. I thought it would be better to set it as
enabled
asfalse
by default since the Charts are independent, but I could change it if you consider the other way.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.
I like this approach a lot! It would be great if we can implement the same pattern across all of the secrets. Though that probably requires a separate PR to avoid encompassing too much into this issue. Unless you would want to rename the PR for that scope
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.
As the TSA case, I set the default value to
false
to be independent.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.
@sabre1041 Any news on this?
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.
@cvegagimenez syntactically this does work. However, in practice, for tuf to run properly, it will need at least one source of content (a secret) in order to start properly. Should we enforce that at least one secret is provided?
Also, would you be able to resolve the conflict in the
README.md
file?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.
Done. I also added the same checks for the other TUF objects.