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

Adds API Token TTL #1792

Merged
merged 8 commits into from Jul 20, 2022
Merged

Adds API Token TTL #1792

merged 8 commits into from Jul 20, 2022

Conversation

Cyb3r-Jak3
Copy link
Contributor

Adds the ability to set not_before and expires_on when creating API Tokens.

Resolves #1603

@github-actions
Copy link
Contributor

github-actions bot commented Jul 20, 2022

changelog detected ✅

@jacobbednarz
Copy link
Member

acceptance tests are passing

TF_ACC=1 go test $(go list ./...) -v -run "^TestAccAPIToken_" -count 1 -parallel 1 -timeout 120m -parallel 1
?       github.com/cloudflare/terraform-provider-cloudflare     [no test files]
=== RUN   TestAccAPIToken_Basic
--- PASS: TestAccAPIToken_Basic (15.56s)
=== RUN   TestAccAPIToken_AllowDeny
--- PASS: TestAccAPIToken_AllowDeny (22.42s)
=== RUN   TestAccAPIToken_DoesNotSetConditions
--- PASS: TestAccAPIToken_DoesNotSetConditions (8.49s)
=== RUN   TestAccAPIToken_SetIndividualCondition
--- PASS: TestAccAPIToken_SetIndividualCondition (8.43s)
=== RUN   TestAccAPIToken_SetAllCondition
--- PASS: TestAccAPIToken_SetAllCondition (8.92s)
=== RUN   TestAccAPIToken_TokenTTL
--- PASS: TestAccAPIToken_TokenTTL (8.38s)
PASS
ok      github.com/cloudflare/terraform-provider-cloudflare/internal/provider   72.848s
?       github.com/cloudflare/terraform-provider-cloudflare/tools/cmd/changelog-check   [no test files]
?       github.com/cloudflare/terraform-provider-cloudflare/tools/cmd/maintainer-only-file-check        [no test files]
?       github.com/cloudflare/terraform-provider-cloudflare/tools/cmd/tf-log-check      [no test files]
?       github.com/cloudflare/terraform-provider-cloudflare/version     [no test files]

@jacobbednarz jacobbednarz merged commit 2dc7f9a into cloudflare:master Jul 20, 2022
@github-actions github-actions bot added this to the v3.20.0 milestone Jul 20, 2022
github-actions bot pushed a commit that referenced this pull request Jul 20, 2022
@Cyb3r-Jak3 Cyb3r-Jak3 deleted the api_token_ttl branch July 21, 2022 00:52
ouranos added a commit to range-me/terraform-provider-cloudflare that referenced this pull request Jul 25, 2022
@github-actions
Copy link
Contributor

This functionality has been released in v3.20.0 of the Terraform Cloudflare Provider.

Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

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.

Add TTL option to cloudflare_api_token
2 participants