Rotate Service Account Secrets
Service account secrets expire after the duration specified when created,
anywhere from 8 hours to 365 days.
When it's time to rotate the secret, Atlas returns the alert
Service Account Secrets are about to expire
.
Note
To configure service account alerts, see Configure Alert Settings.
To rotate your service account secret, complete the following steps to generate a new client secret, update your application with the new client secret, and delete the old secret.
You can generate a new client secret and delete the old one using the Atlas UI.
In Atlas, go to the Organization Access Manager page.
Warning
Navigation Improvements In Progress
We're currently rolling out a new and improved navigation experience. If the following steps don't match your view in the Atlas UI, see the preview documentation.
If it's not already displayed, select your desired organization from the Organizations menu in the navigation bar.
Do one of the following steps:
Select Organization Access from the Access Manager menu in the navigation bar.
Click Access Manager in the sidebar.
The Organization Access Manager page displays.
Generate a new client secret.
Click Generate New Client Secret
Choose a duration for the client secret from the menu. The client secret expires after this duration.
Click Generate New.
Click Copy and save the client secret to a secure location. This is the only time you can view the full client secret.
Click Close.
Update your application with the new client secret.
Important
Once you generate a new client secret, the old client secret expires within 7 days. This expiration period can be shorter depending on the old secret's original expiration date.
If the old secret is set to expire more than 7 days after the new one is created, its expiration is shortened to 7 days from the new secret's creation date.
If the old secret is set to expire in less than 7 days from the new one's creation date, the original expiration date is maintained.
To avoid losing access to the Atlas Administration API, update your application with the new client secret as soon as possible.
You can use the Atlas Administration API to:
Important
Once you generate a new client secret, the old client secret expires within 7 days. This expiration period can be shorter depending on the old secret's original expiration date.
If the old secret is set to expire more than 7 days after the new one is created, its expiration is shortened to 7 days from the new secret's creation date.
If the old secret is set to expire in less than 7 days from the new one's creation date, the original expiration date is maintained.
To avoid losing access to the Atlas Administration API, update your application with the new client secret as soon as possible.