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

Terraform "secrets:" prefix does not get added #644

Open
yanksyoon opened this issue Dec 12, 2024 · 1 comment
Open

Terraform "secrets:" prefix does not get added #644

yanksyoon opened this issue Dec 12, 2024 · 1 comment
Labels
area/secret kind/bug indicates a bug in the project

Comments

@yanksyoon
Copy link

Description

The terraform provider documentation

resource "juju_application" "my-application" {
  #
  config = {
    # Reference my-secret within the plan by using the secret_id
    secret = juju_secret.my-secret.secret_id
  }
  #
}

refers to the secret like so: secret = juju_secret.my-secret.secret_id
This doesn't work since Juju secrets require secret: prefix.
The workaround is to set it as `secret = "secret:${juju_secret.my-secret.secret_id}".

Urgency

Annoying bug in our test suite

Terraform Juju Provider version

0.15.1

Terraform version

v1.7.2

Juju version

3.6

Terraform Configuration(s)

No response

Reproduce / Test

-

Debug/Panic Output

No response

Notes & References

No response

@yanksyoon yanksyoon added kind/bug indicates a bug in the project state/untriaged untriaged bug report labels Dec 12, 2024
@alesstimec
Copy link
Member

alesstimec commented Dec 13, 2024

Thank you for reporting this issue - we will discuss how to address this issue.

Note: The secret resource ID holds the secret ID, not the secret URI.

@alesstimec alesstimec added area/secret and removed state/untriaged untriaged bug report labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/secret kind/bug indicates a bug in the project
Projects
None yet
Development

No branches or pull requests

2 participants