agentleFS
hi-donwihi-donwi/Donwi-Skills/skills/identity-access-management/SKILL.md

identity-access-management

Skill0 starsChanged 13 days agoMITView on GitHub

Design identity federation, tenant-scoped RBAC/ABAC permissions, service credentials, and access revocation. Use for SSO, MFA, SCIM, or authorization models, not member benefit lifecycles or Quarkus-specific security wiring.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create an allow/deny matrix including outsiders and service identities.

    line 29
  2. Distinctive:

    Verify identity with the established stack.

    line 30
  3. Distinctive:

    Use maintained protocol libraries and the pinned provider contract.

    line 32
  4. Distinctive:

    Test horizontal/vertical escalation, forged scope, stale tokens, directory removal, account linking, recovery, and service credentials with …

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Identity and Access Management

Overview

Separate authentication, active organization membership, resource permission, and commercial entitlement. None of these implies the others.

When to use

  • Defining tenant-scoped roles, resource authorization, or enterprise federation.
  • Revoking access after directory changes and managing scoped service credentials.

Hand off when

NeedSkill
Invitations, renewals, member eligibility, and benefitsmembership-management
Quarkus sessions, Argon2id, and RolesAllowedquarkus-security
AI tool execution permissionsai-tool-security

Process

  1. Inventory subjects, tenants/legal entities, resources, actions, and trust boundaries. Create an allow/deny matrix including outsiders and service identities; deny by default.
  2. Verify identity with the established stack. For federation, validate issuer, audience, signature, replay defenses, callback state, and organization binding. Use maintained protocol libraries and the pinned provider contract.
  3. Map identities by verified issuer and subject. Do not auto-link privileged accounts from matching email alone; define safe linking, recovery, MFA, and step-up policies.
  4. Evaluate current membership plus role, resource ownership, and relevant attributes on the server for every sensitive action. Client navigation is never the authority.
  5. Scope API/service credentials to tenant, actions, expiry, and rotation. Store them securely, reveal secrets only when necessary, and audit use without exposing values.
  6. Define permission-cache and session revocation latency. Directory deprovisioning, owner changes, suspension, or compromised credentials must invalidate stale access.
  7. Separate platform administration and tenant roles. Impersonation needs explicit authorization, bounded scope/time, visible attribution, and a business audit event.
  8. Test horizontal/vertical escalation, forged scope, stale tokens, directory removal, account linking, recovery, and service credentials with synthetic principals.

Red flags

  • A global admin boolean, email-only SSO binding, or long-lived cached permissions.
  • Treating authenticated users, paid subscribers, or tenant IDs as automatically authorized.
  • Disabling access checks when identity infrastructure is unavailable.

Verification

  • The permission matrix passes for allowed and denied resource/action combinations.
  • Revocation, federation failures, and account linking cannot bypass organization scope.
  • Recovery and platform support flows have explicit auditable privileges.

References

  • references/access-matrix.md - permissions, federation, and revocation exercises.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.