-
Notifications
You must be signed in to change notification settings - Fork 76
Feat: add traction tenant mode for secure webhook registration #926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
esune
merged 15 commits into
openwallet-foundation:main
from
MonolithicMonk:feat/traction-tenant-mode
Dec 22, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
e0589ec
feat: implement tenant api fallback for webhook registration
MonolithicMonk 12e11ee
feat: add traction tenant mode for secure webhook registration
MonolithicMonk ea7a07c
feat: add traction tenant mode for secure webhook registration
MonolithicMonk 1929903
test: improve coverage for webhook utils and config error handling
MonolithicMonk 7ae2f21
test: fix traction config test failures by setting instance attributes
MonolithicMonk ecf72c1
feat: unify multi-tenant config and add traction mode support
MonolithicMonk dcf4d57
feat: unify multi-tenant config and add traction mode support
MonolithicMonk 0389461
Merge branch 'main' into feat/traction-tenant-mode
MonolithicMonk 036192f
refactor: centralize config in .env and clean manage script
MonolithicMonk 756c370
fix: address code review feedback on traction mode
MonolithicMonk 38325fb
fix: implement token TTL caching and update deprecation docs
MonolithicMonk 923396d
fix: implement token TTL caching and update deprecation docs
MonolithicMonk b39db2d
Merge branch 'main' into feat/traction-tenant-mode
MonolithicMonk 708a931
feat: make token cache TTL configurable via env var
MonolithicMonk 5b32eef
fix: add validation for token cache TTL
MonolithicMonk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,146 @@ | ||
| ############################################ | ||
| # Global / Logging | ||
| ############################################ | ||
| COMPOSE_PROJECT_NAME=vc-authn | ||
| LOG_LEVEL=DEBUG | ||
| LOG_WITH_JSON=false | ||
| DEBUGGER=false | ||
|
|
||
| ############################################ | ||
| # Controller Database (Mongo) | ||
| ############################################ | ||
| MONGODB_HOST=controller-db | ||
| MONGODB_PORT=27017 | ||
| MONGODB_NAME=oidccontroller | ||
| OIDC_CONTROLLER_DB_USER=changeme | ||
| OIDC_CONTROLLER_DB_USER_PWD=changeme | ||
|
|
||
|
|
||
| ############################################ | ||
| # OIDC Controller Service | ||
| ############################################ | ||
| CONTROLLER_SERVICE_PORT=5000 | ||
|
|
||
| # Public URLs | ||
| CONTROLLER_URL=https://your-public-url.example.com | ||
| CONTROLLER_WEB_HOOK_URL=https://your-public-url.example.com/webhooks | ||
| CONTROLLER_API_KEY= | ||
|
|
||
| # Controller Behavior | ||
| CONTROLLER_CAMERA_REDIRECT_URL=wallet_howto | ||
| CONTROLLER_PRESENTATION_EXPIRE_TIME=300 | ||
| CONTROLLER_PRESENTATION_CLEANUP_TIME=86400 | ||
| CONTROLLER_PRESENTATION_RECORD_RETENTION_HOURS=1 | ||
| CONTROLLER_CLEANUP_MAX_PRESENTATION_RECORDS=1000 | ||
| CONTROLLER_CLEANUP_MAX_CONNECTIONS=2000 | ||
|
|
||
| # Configuration Files & Paths | ||
| CONTROLLER_SESSION_TIMEOUT_CONFIG_FILE=/etc/controller-config/sessiontimeout.json | ||
| CONTROLLER_VARIABLE_SUBSTITUTION_OVERRIDE=/etc/controller-config/user_variable_substitution.py | ||
| CONTROLLER_TEMPLATE_DIR=/app/controller-config/templates | ||
|
|
||
| # Verification Options | ||
| INVITATION_LABEL="VC-AuthN" | ||
| SET_NON_REVOKED=true | ||
| ACAPY_PROOF_FORMAT=anoncreds | ||
| USE_OOB_LOCAL_DID_SERVICE=true | ||
| USE_CONNECTION_BASED_VERIFICATION=true | ||
| USE_URL_DEEP_LINK=false | ||
| WALLET_DEEP_LINK_PREFIX=bcwallet://aries_proof-request | ||
|
|
||
| # Scaling & Caching | ||
| CONTROLLER_REPLICAS=3 | ||
| USE_REDIS_ADAPTER=false | ||
| REDIS_HOST=redis | ||
| REDIS_PORT=6379 | ||
| REDIS_PASSWORD= | ||
| REDIS_DB=0 | ||
|
|
||
|
|
||
| ############################################ | ||
| # ACA-Py Agent | ||
| ############################################ | ||
| AGENT_HOST=localhost | ||
| AGENT_NAME="VC-AuthN Agent" | ||
|
|
||
| AGENT_HTTP_PORT=8030 | ||
| AGENT_ADMIN_PORT=8077 | ||
|
|
||
| # Traction / ACA-Py admin endpoints | ||
| AGENT_ADMIN_URL=https://traction-admin.example.com | ||
| AGENT_ENDPOINT=https://traction-acapy-endpoint.example.com | ||
|
|
||
| AGENT_ADMIN_API_KEY=changeme | ||
| AGENT_GENESIS_URL=https://test.bcovrin.vonx.io/genesis | ||
| AGENT_WALLET_SEED=your-32-char-seed-here-00000000000000 | ||
|
|
||
|
|
||
| ######################################################## | ||
| # ACA-Py Wallet / Tenant Identity | ||
| # | ||
| # When AGENT_TENANT_MODE=multi: | ||
| # ACAPY_TENANT_WALLET_ID = Wallet ID | ||
| # ACAPY_TENANT_WALLET_KEY = Wallet Key | ||
| # | ||
| # When AGENT_TENANT_MODE=traction: | ||
| # ACAPY_TENANT_WALLET_ID = Traction Tenant ID | ||
| # ACAPY_TENANT_WALLET_KEY = Traction Tenant API Key | ||
| ######################################################## | ||
| AGENT_TENANT_MODE=traction | ||
|
|
||
| ACAPY_TENANT_WALLET_ID=your-tenant-id-here | ||
| ACAPY_TENANT_WALLET_KEY=your-tenant-key-here | ||
|
|
||
| # Cache TTL for tenant tokens in seconds (default: 3600) | ||
| ACAPY_TOKEN_CACHE_TTL=3600 | ||
|
|
||
| # Legacy (ignored when ACAPY_TENANT_* is set) | ||
| MT_ACAPY_WALLET_ID=legacy-wallet-id | ||
| MT_ACAPY_WALLET_KEY=legacy-wallet-key | ||
|
|
||
|
|
||
| ########################################################## | ||
| # ACA-Py Single-Tenant Settings (AGENT_TENANT_MODE=single) | ||
| ########################################################## | ||
| ST_ACAPY_ADMIN_API_KEY_NAME= | ||
| ST_ACAPY_ADMIN_API_KEY= | ||
|
|
||
|
|
||
| ############################## | ||
| # Wallet Database (PostgreSQL) | ||
| ############################## | ||
| WALLET_TYPE=postgres_storage | ||
| WALLET_ENCRYPTION_KEY=key | ||
| POSTGRESQL_WALLET_HOST=wallet-db | ||
| POSTGRESQL_WALLET_PORT=5432 | ||
| POSTGRESQL_WALLET_DATABASE=wallet_db | ||
| POSTGRESQL_WALLET_USER=walletuser | ||
| POSTGRESQL_WALLET_PASSWORD=walletpassword | ||
|
|
||
|
|
||
| ############################################ | ||
| # OIDC Client | ||
| ############################################ | ||
| OIDC_CLIENT_ID=your-client-id | ||
| OIDC_CLIENT_NAME="Your Application Name" | ||
| OIDC_CLIENT_REDIRECT_URI=https://your-redirect-url.example.com | ||
| OIDC_CLIENT_SECRET=your-client-secret | ||
|
|
||
|
|
||
| ############################################ | ||
| # Keycloak Database | ||
| ############################################ | ||
| KEYCLOAK_DB_NAME=keycloak | ||
| KEYCLOAK_DB_USER=keycloak | ||
| KEYCLOAK_DB_PASSWORD=changeme | ||
|
|
||
|
|
||
| ############################################ | ||
| # Keycloak Service | ||
| ############################################ | ||
| KEYCLOAK_DB_VENDOR=postgres | ||
| KEYCLOAK_DB_ADDR=keycloak-db | ||
| KEYCLOAK_USER=admin | ||
| KEYCLOAK_PASSWORD=admin | ||
| KEYCLOAK_LOGLEVEL=WARN | ||
| KEYCLOAK_ROOT_LOGLEVEL=WARN |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.