Skip to content

Conversation

@nagygergo
Copy link

@nagygergo nagygergo commented Mar 15, 2025

Adding some documentation on how Kustomize controller works with patch files and sops decryption. There is a mention of something like this in the SOPS user guide (https://fluxcd.io/flux/guides/mozilla-sops/#sops-encrypted_regex-conflict), but probably it is also good to describe both cases (secretsGenerator and patchfiles) in the kustomize controller, besides each other.

@matheuscscp
Copy link
Member

Hey @vlasov-y would you have time to review this PR? 🙏 I think it's a bit related to what you worked on recently? Thanks!!! 🙏

Copy link
Contributor

@vlasov-y vlasov-y left a comment

Choose a reason for hiding this comment

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

Once these comments are changed, it is clear to go and merge. Thanks @nagygergo!

Copy link
Member

@matheuscscp matheuscscp left a comment

Choose a reason for hiding this comment

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

Thanks very much you both!!! 🙏

@stefanprodan stefanprodan added the hold Issues and pull requests put on hold label Mar 26, 2025
metadata:
name: secret
stringData:
publicConifg: "my-public-config"
Copy link
Member

Choose a reason for hiding this comment

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

I don't think Flux docs should tell users to leave Secrets in plain text in the repo. I think the base Secret should contain no keys.

Copy link
Author

Choose a reason for hiding this comment

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

Does that apply to the "Kustomize secretGenerator" chapter as well?

Copy link
Member

Choose a reason for hiding this comment

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

Do we tell people to leave secrets in plain text in that chapter?

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, put the comment in the wrong place... My question was directed at this comment.

A better place for this documentation is here: https://fluxcd.io/flux/guides/mozilla-sops/
@nagygergo please copy the section from this PR into https://github.com/fluxcd/website/edit/main/content/en/flux/guides/mozilla-sops.md

@stefanprodan
Copy link
Member

A better place for this documentation is here: https://fluxcd.io/flux/guides/mozilla-sops/

@nagygergo please copy the section from this PR into https://github.com/fluxcd/website/edit/main/content/en/flux/guides/mozilla-sops.md

@nagygergo
Copy link
Author

A better place for this documentation is here: https://fluxcd.io/flux/guides/mozilla-sops/

@nagygergo please copy the section from this PR into https://github.com/fluxcd/website/edit/main/content/en/flux/guides/mozilla-sops.md

Does that apply to the "Kustomize secretGenerator" chapter as well?

@stefanprodan
Copy link
Member

Does that apply to the "Kustomize secretGenerator" chapter as well?

This applies to what's in this PR. I'm not suggesting deleting anything from the current docs.

@nagygergo
Copy link
Author

Closing in favor of fluxcd/website#2200 as @stefanprodan asked.

@nagygergo nagygergo closed this Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hold Issues and pull requests put on hold

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants