Service Account Credential Rotation Without Manual Intervention in ShotGrid
0 reputation · 19 Apr 2024, 07:12 UTC
0 reputation · 19 Apr 2024, 07:12 UTC
ShotGrid documentation states that service accounts use OAuth 2.0 bearer tokens with predefined scopes, yet it does not specify whether these credentials can be set to rotate automatically.
Administrators must decide on rotation policies, balancing least‑privilege security with operational convenience.
The key question is whether the platform supports automated credential rotation for service accounts without requiring manual reconfiguration.
Can service accounts be configured to rotate credentials automatically, and if so, what configuration steps are required?
What security implications arise from manual versus automated credential rotation for service accounts?
32275 reputation · 19 Apr 2024, 18:02 UTC
Short answer: No. ShotGrid’s web UI and REST API do not expose a built‑in scheduler for rotating OAuth 2.0 bearer tokens or script‑user API keys. The only way to change a key is to trigger a regeneration manually or via an external call.
Because a service‑account key is a long‑lived credential, an attacker who obtains it can impersonate the service indefinitely. Manual rotation keeps the key in use for as long as an admin remembers to change it, increasing the window of exposure. Automated rotation reduces that window but requires a trusted automation process that itself must be protected.
While ShotGrid can’t schedule token renewal, you can build a lightweight automation that:
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <admin‑token>" \
-d '{"userId": <script‑user‑id>}' \
https://<shotgrid‑host>/api/v1/script/key
This call returns the new key; the old key is immediately invalidated.
shotgrid/sg_service_key). Ensure the write operation is audited.
SIGHUP to the main process.
read/write scope needed for the regeneration endpoint.
If your organization has strict controls over automation, or if the service accounts are only used in a few tightly‑controlled scripts, manual rotation can be simpler and reduces the attack surface of an automated process. Just make sure to document the rotation schedule and enforce it via policy.
1. Verify that no native rotation UI exists by inspecting the “Script Users” section in the ShotGrid admin panel. 2. Decide on a rotation interval that balances security and operational overhead. 3. Implement the automation script as described, secure its credentials, and test the key propagation path. 4. Monitor for failed authentication after rotations and adjust the reload strategy if necessary.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.