agentleFS
Bhanuj-AIBhanuj-AI/ai-governance-oss/keycloak-postgres/AGENTS.md

ai-governance-oss / keycloak-postgres

AGENTS.md2 starsChanged 4 months agoApache-2.0View on GitHub

This directory owns the local Keycloak and PostgreSQL topology, realm import, and identity-development configuration. - docker-compose.yml defines the local postgres and keycloak services. - keycloak/ai-governance-realm.json is the imported realm contract used by local Keycloak development. - The API validates Keycloak credentials through its authentication and tenant context dependencies; this topology must remain compatible with that flow. - Treat realm clients, roles, scopes, redirect URIs, origins, and audience configuration as security contracts. Do not weaken them or commit real credentials for…

  • Reads credentials

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 1 is common, 0 are distinctive, and 1 is very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Common:

    Treat realm clients, roles, scopes, redirect URIs, origins, and audience configuration as security contracts.

    line 16
  2. Very specific:

    Keep least-privilege role assignments and the expected login or client-credentials flow aligned with src/ai_governance/tenancy.

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
AGENTS.md

Scope

This directory owns the local Keycloak and PostgreSQL topology, realm import, and identity-development configuration.

Architectural Facts

  • docker-compose.yml defines the local postgres and keycloak services.
  • keycloak/ai-governance-realm.json is the imported realm contract used by local Keycloak development.
  • The API validates Keycloak credentials through its authentication and tenant context dependencies; this topology must remain compatible with that flow.

Change Rules

  • Treat realm clients, roles, scopes, redirect URIs, origins, and audience configuration as security contracts. Do not weaken them or commit real credentials for local convenience.
  • Preserve the PostgreSQL volume and realm-import compatibility unless an intentional reset is documented. Local identity changes can invalidate existing developer sessions and client credentials.
  • Keep least-privilege role assignments and the expected login or client-credentials flow aligned with src/ai_governance/tenancy.

Validation

From this directory, run docker compose --env-file .env.keycloak -f docker-compose.yml config --quiet, then validate the affected local login or client-credentials flow against a clean startup.

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.