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

Difference in inline hook secret value and script - resource "okta_inline_hook". #2098

Open
venkatakanupuru opened this issue Oct 1, 2024 · 1 comment
Assignees
Labels
help wanted OKTA-817126 triaged Triaged into internal Jira

Comments

@venkatakanupuru
Copy link

Hi Team,

To configure a inline hook manually steps are:
Okta Dashboard > workflow > Inline Hooks > Add inline hook > token

Configure the same using Terraform resource using:
resource "okta_inline_hook"

For importing :
terraform import okta_inline_hook.example <hook_id>

When inline hook was configured manually configured and is imported to Terraform script it does not show the encrypted value which is fine however after the import and assigning the same value in script which is the actual value used and when you run the terraform plan it would show that the value is being updated. Is there a way where the script will validate the value is correct and update the state file without updating anything else.

module.authorization-servers.okta_inline_hook.inline-token-hook will be updated in-place

~ resource "okta_inline_hook" "inline-token-hook" {
~ auth = {
~ "value" = "" -> "Basic xxxxxxxyyyyyyyyyzzzzzz"
# (2 unchanged elements hidden)
id = "1213131313121312343252"
name = "inline hook name"
# (4 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}

Thank you,
Venkata

@arvindkrishnakumar-okta
Copy link
Contributor

Created https://oktainc.atlassian.net/browse/OKTA-817126 for internal reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted OKTA-817126 triaged Triaged into internal Jira
Projects
None yet
Development

No branches or pull requests

3 participants