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
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,117 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- console/AGENTS.mdAGENTS.md
- api-changeSkill
- domain-featureSkill
- governance-policySkill
- keycloak-service-identitySkill
- model-runtime-capability-profileSkill
- tenant-isolationSkill
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
- Common: line 16
Treat realm clients, roles, scopes, redirect URIs, origins, and audience configuration as security contracts.
- Very specific: line 22
Keep least-privilege role assignments and the expected login or client-credentials flow aligned with src/ai_governance/tenancy.
≈ “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.
Files
Scope
This directory owns the local Keycloak and PostgreSQL topology, realm import, and identity-development configuration.
Architectural Facts
docker-compose.ymldefines the localpostgresandkeycloakservices.keycloak/ai-governance-realm.jsonis 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.
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
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.

