Refresh agent credentials
Refreshing an agent's credentials lets you generate a new client_secret for the agent in the Data Productivity Cloud, to authenticate with the agent application in your infrastructure. You may wish to do this if, for example, your security policy requires that you change secrets on a regular basis.
Warning
This action will revoke existing credentials and result in disconnecting a running agent. You must replace your agent credentials and restart the agent to reconnect. Ensure you have no pipelines running on the agent when you use this feature.
Refresh agent credentials
- Locate your agent on the Agents screen and click ... then click Agent details.
- Click Refresh at the bottom of the Agent details screen.
- When asked for confirmation, type the word
refresh
and click Refresh credentials. - When you receive a notification that the credentials are refreshed, you can click Reveal to show the new secret that has been generated.
Apply the new credentials to the agent in AWS or Azure. If the agents have been installed using the provided templates for ECS and Container Apps, then the following guides for AWS or Azure may be used. Until this is done, the agent status will show as Unknown on the Agents screen, and the agent can't be used to run pipelines.
Apply the new credentials (AWS)
Once you have refreshed credentials on the Agent Details screen, follow this process to update your AWS-hosted agent to use the new credentials.
The client_secret used by the agent is held in your AWS Secrets Manager. The agent app contains a pointer to this secret, which will not change. To update the secret:
- Log in to the AWS Console and locate the ECS service running your agent. Note the name assigned to the agent.
- In Secrets Manager, locate and select the secret that corresponds to the agent name you noted.
- Click Retrieve secret value to display the existing value, then click Edit.
- Copy in the refreshed client_secret value you obtained from the Data Productivity Cloud. Don't change the secret name.
- Click Save.
Now restart the agent, as described in Restart an agent.
Apply the new credentials (Azure)
Once you have refreshed credentials on the Agent Details screen, follow this process to update your Azure-hosted agent to use the new credentials.
- In the Azure portal, select the Container App that holds your agent.
- In the Container App's sidebar menu, select Application then containers.
- Click the Environment variables tab.
- The OAUTH_CLIENT_SECRET variable tells you the name of the secret that holds the client_secret.
- In the Container App's sidebar menu, click Settings → Secrets and locate the secret name you determined above.
- Click the edit (pencil) icon next to the secret to edit its value.
- Copy the refreshed client_secret you obtained from the Data Productivity Cloud and paste it into the Value field.
- Click the checkbox at the bottom to acknowledge that you want to proceed with the change.
- Click Save.
Now restart the agent, as described in Restart an agent.