feat(deploy): add OPA + KMS docker-compose stack#995
Open
serene-kitfisto-8899 wants to merge 2 commits into
Open
feat(deploy): add OPA + KMS docker-compose stack#995serene-kitfisto-8899 wants to merge 2 commits into
serene-kitfisto-8899 wants to merge 2 commits into
Conversation
Add deploy/opa/ with a self-contained Docker Compose stack that demonstrates Cosmian KMS running alongside Open Policy Agent (OPA): - OPA serves the default RBAC Rego policy on port 8181 with anonymous telemetry disabled (--disable-telemetry) - KMS uses SQLite backend, embedded Regorus RBAC engine pointing at the same policy bundle as OPA - KMS_FORCE_DEFAULT_USERNAME=true enables the built-in admin identity without requiring an external IdP Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- deploy/opa: OPA + KMS stack with --disable-telemetry - deploy/rbac: full RBAC stack with step-ca TLS, Keycloak, OPA, KMS - Keycloak realm 'kms' with 4 users/roles and audience mapper - JWT authentication wired to Keycloak OIDC - TLS certs issued by step-ca for all services - smoke-test script (20/20 passing) - fix(jwt): UserClaim serde: add #[serde(default)] to aud field so tokens without an audience claim deserialize correctly Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a self-contained
deploy/opa/Docker Compose stack that demonstrates Cosmian KMS running alongside Open Policy Agent (OPA) for RBAC policy evaluation.Services
openpolicyagent/opa:0.68.0ghcr.io/cosmian/kms:latestKey choices
deploy/opa/opa/policy/) with anonymous telemetry disabled (--disable-telemetry)KMS_FORCE_DEFAULT_USERNAME=trueenables the built-inadminidentity without an external IdP — add JWT/mTLS for productionQuick start
cd deploy/opa docker compose up -d curl http://localhost:9998/health