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

WIP: fix for secret_id of the juju_secret_resource #650

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

alesstimec
Copy link
Member

Description

The secret_id field of the juju_secret_resource should hold the secret URI instead of the ID
so that other resources can use it without having to manually prefix it with secret:.

Fixes: #644

Type of change

  • Change existing resource

Environment

  • Juju controller version:

  • Terraform version:

QA steps

Manual QA steps should be done to test this PR.

provider juju {}
...

Additional notes

<Please add relevant notes & information, links to mattermost chats, other related issues/PRs, anything to help understand and QA the PR.>

alesstimec and others added 4 commits December 13, 2024 11:43
The `secret_id` field of the `juju_secret_resource` should hold the secret URI instead of the ID
so that other resources can use it without having to manually prefix it with `secret:`.
@alesstimec alesstimec changed the title Secret id fix WIP: fix for secret_id of the juju_secret_resource Dec 18, 2024
@alesstimec alesstimec requested review from hmlanigan, anvial and kian99 and removed request for hmlanigan December 18, 2024 15:16
Copy link
Member

@hmlanigan hmlanigan left a comment

Choose a reason for hiding this comment

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

This change will break existing configurations using the secret data source or resource. Are we sure that's what we want?

The integration tests are missing a test: TestAcc_ResourceSecret_UpgradeProvider.

It is possible to solve the issue without breaking anything by updating the value before sending to juju where necessary.

todo: finish filling in the PR description.

todo: rebase with only the relevant commit rather than combining unrelated PRs.

todo: update commit message with details for a breaking change if that is the decision:
w.g. BREAKING CHANGE: extends key in config file is now used for extending other config files

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.

Terraform "secrets:" prefix does not get added
2 participants