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

Drift in dbtcloud_environment_variable when using sensitive variable DBT_ENV_SECRET_ #229

Closed
yaeba opened this issue Jan 5, 2024 · 1 comment · Fixed by #231
Closed
Assignees
Labels
bug Something isn't working

Comments

@yaeba
Copy link

yaeba commented Jan 5, 2024

Describe the bug

Using dbtcloud_environment_variable to manage sensitive variable ie DBT_ENV_SECRET_xxx
will always result in drifts, as the API response contains masked value

Error message

na

Resource configuration

resource "dbtcloud_environment_variable" "test" {
  name       = "DBT_ENV_SECRET_TEST"
  project_id = 10
  environment_values = {
    "project" : "some-secret-here"
  }
}

will give the following during planning

Plan: 0 to add, 1 to change, 0 to destroy.

Expected behavior

Should not result in drift

Config (please complete the following information):

  • dbt Cloud provider version [e.g. 0.2.17]

Additional context

Add any other context about the problem here.

@yaeba yaeba added the bug Something isn't working label Jan 5, 2024
@b-per
Copy link
Collaborator

b-per commented Jan 8, 2024

Thanks for raising this! This is a scenario I didn't think about yet.

I will try to change the behaviour and do a new release in the next days.

@b-per b-per self-assigned this Jan 8, 2024
@b-per b-per mentioned this issue Jan 10, 2024
@b-per b-per linked a pull request Jan 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants