SECURITY ENGINEERING, IN PRACTICE.ANALYSIS / TECHNICAL NOTES / FIELD NOTES
Packet Notes.

Clear thinking on software,
infrastructure and security.

Field note

Short-lived CI credentials still need a narrow trust policy

Removing a stored secret changes the credential lifecycle. It does not decide who may deploy.

Replace the secret and review the grant

GitHub Actions can use OpenID Connect to obtain credentials from a cloud provider without maintaining a long-lived cloud secret in the workflow. The provider evaluates claims in the identity token before granting access. That trust configuration is central to the design.

A migration is incomplete if the old credential disappears but the new grant accepts more workflows than intended. The review should connect the repository and workflow context to a specific cloud role and the operations it permits.

Describe one allowed release

Write a plain-language statement of the intended deployment: which repository, which environment, which approval and which destination. Compare it with the actual trust configuration. Keep permissions for producing an artifact separate from permissions for putting that artifact into service.

Our suggested change record also names the person who can modify the trust relationship. A carefully scoped role can become broad again through an unreviewed change to the conditions that grant it.

Check the failure path

Determine what happens when identity exchange fails. A fallback to a shared legacy secret can preserve the original exposure while making it harder to notice. Remove unused credentials deliberately, and verify that expected release and rollback paths work with the documented identity relationship.

Source & further reading

GitHub Docs · OpenID Connect ↗