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

feat(config): support type:secret in config.options #1623

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

tonyandrewmeyer
Copy link
Contributor

The config.options section of charmcraft.yaml supports, from Juju 3.1, a type secret (this is currently missing from the documentation, but the Juju team are addressing that now).

This adds support for that, so that Charmcraft 2.5 can be used to pack charms that make use of this functionality.

@tonyandrewmeyer
Copy link
Contributor Author

cf. canonical/operator#1166 where this was raised in ops.

@jameinel
Copy link
Member

I can't say that I know the charmcraft bits well enough to concretely give an approval, but thank you for putting this together.

@lengau lengau requested review from syu-w and lengau April 3, 2024 22:32
Copy link
Collaborator

@lengau lengau left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! The code looks good, but I'm thinking about how (and whether) we want to do this in 2.x considering that 3.0 is around the corner and will include this from your other PR.

I'll sleep on this and talk with some folks, and if you, @jameinel or anyone else would like to weigh in on it I'm open to hearing from you. (User stories that include staying on the 2.x branch after 3.0 will be most convincing - in-progress release notes for 3.0 are here: https://docs.google.com/document/d/1CPo8-dwlBU3Nd1dXUaZ1Rdfo3jPXvrkZs-ulg-DS_e0/edit)

@syu-w syu-w changed the title fix: support type:secret in config.options feat(config): support type:secret in config.options Apr 3, 2024
@lengau lengau linked an issue Apr 4, 2024 that may be closed by this pull request
@lengau
Copy link
Collaborator

lengau commented Apr 11, 2024

We're doing a 2.6 release to fix #1640 , so I'm going to retarget this and include it in that release.

Thanks again for your patience folks!

@lengau lengau changed the base branch from hotfix/2.5 to hotfix/2.6 April 11, 2024 14:23
@lengau lengau merged commit 0f7a56d into canonical:hotfix/2.6 Apr 11, 2024
23 checks passed
@tonyandrewmeyer tonyandrewmeyer deleted the config-type-secret-2.5 branch April 18, 2024 06:20
lengau pushed a commit that referenced this pull request Jul 19, 2024
The `config.options` section of `charmcraft.yaml` supports, from Juju
3.1, a type `secret` (this is currently missing from the documentation,
but the Juju team are addressing that now).

This adds support for that, so that Charmcraft 2.5 can be used to pack
charms that make use of this functionality.
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.

Juju 3.4 supports user-secrets and config with 'secret' type
4 participants