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

Enable GPG Signing of Commits #136

Merged
merged 6 commits into from
Mar 30, 2021
Merged

Enable GPG Signing of Commits #136

merged 6 commits into from
Mar 30, 2021

Conversation

lwj
Copy link
Contributor

@lwj lwj commented Mar 24, 2021

Closes #122

Added a new (optional) SigningKey field to the CommitSpec with a secretRef. This secret can be generated the exact same way as described in the SOPS guide, so it should be easy for existing users to understand - the only difference is the key is named git.asc rather than sops.asc.

Once any modifications have been suggested/made, I could make a pull request to the flux2 project with some documentation and CLI changes.

lwj added 4 commits March 24, 2021 21:54
Signed-off-by: LWJ <lwjames1996@gmail.com>
Signed-off-by: LWJ <lwjames1996@gmail.com>
Signed-off-by: LWJ <lwjames1996@gmail.com>
Copy link
Member

@squaremo squaremo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requested changes:

  • make a const for "git.asc"
  • change the field secretRef to a value type, since it's required (and could cause an NPE otherwise)

api/v1alpha1/imageupdateautomation_types.go Outdated Show resolved Hide resolved
controllers/imageupdateautomation_controller.go Outdated Show resolved Hide resolved
controllers/update_test.go Show resolved Hide resolved
controllers/update_test.go Outdated Show resolved Hide resolved
@lwj
Copy link
Contributor Author

lwj commented Mar 29, 2021

Thanks @squaremo for reviewing! I'll get these changes made this evening 😄

Signed-off-by: LWJ <lwjames1996@gmail.com>
@lwj lwj requested a review from squaremo March 30, 2021 09:36
Signed-off-by: LWJ <lwjames1996@gmail.com>
@lwj lwj requested a review from squaremo March 30, 2021 12:44
Copy link
Member

@squaremo squaremo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good, nice work @lwj 🍎

@squaremo squaremo merged commit a4f5b8f into fluxcd:main Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] Commit with gpg signing
2 participants