Skip to main content

Hi team,

My company manages PagerDuty configuration in terraform. One resource we manage is a PD Slack connection. From this doc, it mentions this resource requires a `user_token` API key. https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/slack_connection

 

My question is, what happens when the user leaves the company? Will the user API key become unusable?

Hi @ajsumo 

 

An API key is only required to create or update the connection objects, not for the connection to function once created. The pagerduty_slack_connection object is not currently supported by our OAuth tokens, so an API key is required for this resource. You might have other resources that are supported by OAuth and have a different auth model.

 

Once it’s created, the API key is not associated with the connection.  If the original user who creates the Slack connections leaves, or gets a new key, a new key can still be used to maintain the connection going forward. When a user leaves your organization, their keys will be unusable. Any user with appropriate permissions to maintain the connection settings can use their own user key.

 

You can see the underlying API here: https://developer.pagerduty.com/api-reference/fb85c0f6c87f7-create-a-slack-connection and the support docs here: https://support.pagerduty.com/main/docs/slack-integration-guide

 

HTH

--mandi


Thanks for the prompt response!


Reply