Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Add support for client secret rotation #153

Merged
merged 1 commit into from
Dec 18, 2019

Conversation

alexkappa
Copy link
Owner

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Fixes #152

Changes proposed in this pull request:

  • resource/auth0_client: support rotating client_secret by changing the value of client_secret_rotation_trigger.

How it works, given a client resource as the following:

resource "auth0_client" "my_client" {
  name = "Application - Acceptance Test - Rotate Secret"
}

if we change the value of client_secret_rotation_trigger it will trigger the client_secret to rotate.

resource "auth0_client" "my_client" {
  name = "Application - Acceptance Test - Rotate Secret"
  client_secret_rotation_trigger = {
    triggered_at = "2018-01-02T23:12:01Z"
    triggered_by = "alex"
  }
}

Note: the contents of client_secret_rotation_trigger are arbitrary and can be set to any value the user desires.

Output from acceptance testing:

$ make testacc TESTS=TestAccClientRotateSecret      [16:39:09]
==> Checking that code complies with gofmt requirements...
?       github.com/alexkappa/terraform-provider-auth0   [no test files]
=== RUN   TestAccClientRotateSecret
--- PASS: TestAccClientRotateSecret (1.70s)
PASS
coverage: 15.1% of statements
ok      github.com/alexkappa/terraform-provider-auth0/auth0     1.751s  coverage: 15.1% of statements

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rotation of Client Secrets in auth0_client
1 participant