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

Add org token roate and permissions acl to signalfx_org_token #422

Open
leij-splunk opened this issue Mar 1, 2023 · 3 comments
Open

Add org token roate and permissions acl to signalfx_org_token #422

leij-splunk opened this issue Mar 1, 2023 · 3 comments

Comments

@leij-splunk
Copy link

leij-splunk commented Mar 1, 2023

Add org token rotation to TF provider
https://api.{REALM}.signalfx.com/v2/token/{name}/rotate
Add org token permissions to TF provider
https://dev.splunk.com/observability/reference/api/org_tokens/latest

@leij-splunk leij-splunk changed the title Add org token rotation Add org token rotation to signalfx_org_token Mar 1, 2023
@anelson-splunk
Copy link

It would be nice if state can store the original token as well as the new token so there is a way to access it before it actually expires if the 30 day overlap is set in the API...

@leij-splunk leij-splunk changed the title Add org token rotation to signalfx_org_token Add org token rotation to signalfx_org_token Mar 31, 2023
@leij-splunk leij-splunk changed the title Add org token rotation to signalfx_org_token Add org token rotation and permissions to signalfx_org_token Mar 31, 2023
@leij-splunk leij-splunk changed the title Add org token rotation and permissions to signalfx_org_token Add org token roate and permissions acl to signalfx_org_token Mar 31, 2023
@navtej-splunk
Copy link

Hi @leij-splunk & @anelson-splunk,

Thank You for bringing up the issues regarding org token rotation and permissions. Can you help add more details on the specific use cases or scenarios where org token rotation and permissions are needed? This will help us in addressing your request more effectively.
Looking forward to your inputs!

Best,
Navtej

@leij-splunk
Copy link
Author

Hi @navtej-splunk

  1. permissions acl
    Currently, with the Terraform provider we are using, there is no built-in way to grant a team/user access to the tokens created by Terraform.
  • API Doc
    permissions : objectList of authorizations for this org token, in the form of a JSON array of JSON objects. Each object specifies an authorization, the ID that can perform the action, and the type of ID.
    
  • UI:
    image
  1. Token rotate
    The Terraform provider does not offer an automatic rotation capability to handle the token rotation process.
  • API Doc
    • token rotate: Generates a new token secret for the token specified by the name path parameter, and de-authorizes the previous token secret.
    • graceful : Time interval, in seconds, during which the old secret continues to function

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

No branches or pull requests

3 participants