/devops-skills:ci-access-and-credential-lifecycle-managementfrom devops-skills
Manages temporary repo and environment access grants and CI service-account credential lifecycle — granting time-boxed access, revoking when done, and rotating tokens before expiry.
Ships in devops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
CI/CD systems accumulate access grants and long-lived credentials faster than they shed them: a contractor gets repo write access for a two-week project and still has it a year later, a CI service account is issued a token with no expiry "to avoid breaking the pipeline," and nobody owns noticing when either becomes a stale, unused liability. This skill covers the operational discipline of treating access and credentials as having a lifecycle — granted for a reason, time-boxed, and reliably revoked or rotated — rather than as a one-way ratchet that only ever adds permissions and never removes them.
Default every one-off access grant to a defined end date, not indefinite access "until someone remembers to remove it." Prefer a platform mechanism that expires automatically over a manual reminder:
# GitHub: repository collaborator invite (manually tracked expiry —
# GitHub itself has no native invite TTL, so pair with a ticket/calendar
# reminder or an org-level SAML/SCIM group with a time-boxed membership)
gh api repos/<org>/<repo>/collaborators/<contractor-username> \
-f permission=push
# Track removal due date in the access-request ticket, not just memory.
# AWS IAM Identity Center: time-boxed permission set assignment via a
# just-in-time access tool, or a scheduled removal via automation
# rather than a standing assignment with no review date.
If the platform truly has no native expiry, the access-request ticket itself must carry the revoke-by date and an owner responsible for closing it out — an untracked "temporary" grant is not actually temporary.
Scope every grant to the narrowest resource and permission that completes the task, not "give them admin so we don't have to ask again." A contractor fixing one repo's CI config needs write access to that repo, not org-owner; a one-off production debugging session needs read-only access to specific logs/metrics, not a standing production credential.
Revoke reliably at the end date — verify, don't assume. Build revocation into the same ticket/workflow that granted access, and periodically audit for grants past their stated end date:
# Example audit: list repo collaborators and cross-reference against
# active-contractor list / ticket due dates, flagging anything stale.
gh api repos/<org>/<repo>/collaborators --jq '.[].login'
Treat "the contract ended three months ago and access was never revoked" as a finding to fix immediately, not a minor housekeeping item.
Rotate CI service-account tokens on a schedule, before expiry — not reactively after a pipeline starts failing with 401s. Track each credential's expiry date and set a rotation reminder well before it (e.g., 30 days out for a 90-day token), and prefer credentials that support overlap during rotation (both old and new valid briefly) over a hard cutover that risks an outage if any consumer wasn't updated:
# Example: rotate a GitHub App private key used by CI, keeping the
# old key valid until the new one is confirmed working everywhere
# that consumes it, then explicitly revoking the old key.
gh api /app/installations/<id>/access_tokens # verify new key works
# ...only after confirming all consumers use the new key:
# revoke the old private key in the GitHub App settings.
Prefer short-lived, federated credentials over long-lived static ones for new CI-to-cloud integrations, so there is no long-lived secret to rotate at all:
# GitHub Actions -> AWS via OIDC, no long-lived AWS access key stored
# as a secret
permissions:
id-token: write
contents: read
steps:
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::<AWS_ACCOUNT_ID>:role/ci-deploy-role
aws-region: us-east-1
Where OIDC federation isn't available (some on-prem or older SaaS integrations), fall back to a short-TTL static credential with mandatory rotation rather than a "no expiry" token issued for convenience.
Audit for orphaned credentials tied to decommissioned integrations/service accounts — a token whose owning pipeline/service was removed months ago but whose credential is still valid is a pure liability with no offsetting benefit. Cross-reference active tokens against active pipelines/integrations on a recurring schedule (quarterly is a reasonable default cadence), not only when an audit or incident forces the question.
Log every grant and revocation (who approved it, for what task, for how long, and when it was actually revoked) so an access review or incident investigation doesn't depend on anyone's memory.
Symptom: A contractor's repo access is still active months after their engagement ended, discovered only during a security audit. Fix: Pair every access grant with an explicit revoke-by date tracked in a ticket (step 1), and run a recurring audit cross-referencing active grants against active engagements (step 3) — don't rely on someone remembering to remove access manually.
Symptom: A CI pipeline suddenly starts failing with authentication errors because a service-account token quietly expired with no advance warning. Fix: Track every credential's expiry date and rotate on a schedule well before expiry, with overlap between old and new credentials (step 4) — rotation should never be a reactive scramble after a pipeline outage.
Symptom: A CI-to-cloud integration uses a long-lived static access key "because setting up federation seemed like extra work," and that key later shows up in a leaked-secret scan. Fix: Default new CI-to-cloud integrations to OIDC/workload-identity federation (step 5), which removes the long-lived secret from the picture entirely rather than requiring it to be rotated and protected indefinitely.
Symptom: A one-off production access grant given "just to debug this one issue" is scoped to full admin because it was faster than figuring out the minimal permission set, and it's never revisited. Fix: Scope every grant to the narrowest permission for the stated task (step 2) — a broader grant "to save time" becomes a standing risk that outlives the task it was meant for.
Symptom: A service account's credential is still valid long after the pipeline or integration that used it was decommissioned. Fix: Include orphaned-credential detection in the recurring access review (step 6) — cross-reference active credentials against actually active pipelines/integrations, not just against a list of employees.
Scenario: An external QA vendor needs temporary read/write access to
a checkout-api repo's CI configuration for a two-week load-testing
engagement, and separately the team notices their GitHub App's CI
deployment key expires in 45 days.
revoke-by: 2026-08-11 date (two weeks out), granting the vendor
push access to only checkout-api (not the org, not other repos),
scoped further by branch protection so they still can't push directly
to main.access-expiry and surfaced on a
weekly automated report of grants nearing their revoke-by date.gh api repos/<org>/checkout-api/collaborators/<user> -X DELETE,
and the ticket is closed with a timestamped confirmation — not just
assumed done because the engagement "should be" over.What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/artifact-and-dependency-managementManages build artifacts and third-party dependencies through a private registry/proxy with lockfiles, version pinning, retention policies, and automated update workflows. Use when the user asks to "set up an artifact repository," "configure a package registry proxy/mirror," "pin/lock dependency versions," "clean up old artifacts," "handle a dependency update / Dependabot-Renovate PR," or "avoid a left-pad-style supply-chain incident."
/blue-green-canary-deploymentsDesigns and executes progressive delivery strategies — blue-green cutover, canary rollout, and traffic-shifted releases — with automated health checks and rollback triggers, typically on Kubernetes. Use when the user asks to "reduce deployment risk," "set up canary/blue-green deployments," "do a zero-downtime release," "gradually shift traffic to a new version," or "automatically roll back a bad deploy."
/ci-cd-pipeline-designDesigns and troubleshoots CI/CD pipelines (GitHub Actions, GitLab CI, or equivalent) including stage layout, caching, parallelization, quality gates, and secrets handling. Use when the user asks to "set up a CI/CD pipeline," "add a build/test/deploy workflow," "fix a failing pipeline stage," "speed up CI," "add branch protection / required checks," or "design a deployment pipeline" for an application or infrastructure repo.
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin devops-skillsOther plugins' skills for the same job