Skip to content

Commit

Permalink
feat: disable the APIKEY authentication in the cloud-agent (#1479)
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
  • Loading branch information
yshyn-iohk authored Dec 13, 2024
1 parent a96e544 commit 2fb833a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ agent {
# enabled is used to enable/disable the api key authentication
# if apikey authentication is disabled, the alternative authentication method is used
# if the alternative authentication method is not configured, apikey authentication is disabled the default user is used
enabled = true
enabled = false
enabled = ${?API_KEY_ENABLED}

# authenticateAsDefaultUser is used to authenticate the api key as the default user
# if authenticateAsDefaultUser is disabled, the api key is authenticated to the entity that owns the api key
authenticateAsDefaultUser = false
authenticateAsDefaultUser = true
authenticateAsDefaultUser = ${?API_KEY_AUTHENTICATE_AS_DEFAULT_USER}

# autoProvisioning is used to enable/disable the auto-provisioning logic
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/shared/docker-compose-combined.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ services:
WEBHOOK_PARALLELISM:
ADMIN_TOKEN:
API_KEY_SALT:
API_KEY_ENABLED:
API_KEY_AUTHENTICATE_AS_DEFAULT_USER:
API_KEY_ENABLED: true
API_KEY_AUTHENTICATE_AS_DEFAULT_USER: false
API_KEY_AUTO_PROVISIONING:
depends_on:
issuer-db:
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/shared/docker-compose-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ services:
DEFAULT_WALLET_SEED:
DEFAULT_WALLET_WEBHOOK_URL:
DEFAULT_WALLET_AUTH_API_KEY:
API_KEY_ENABLED:
API_KEY_ENABLED: true
API_KEY_AUTHENTICATE_AS_DEFAULT_USER: false
API_KEY_AUTO_PROVISIONING:
depends_on:
db:
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/shared/docker-compose-mt-keycloak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ services:
WEBHOOK_PARALLELISM:
ADMIN_TOKEN:
API_KEY_SALT:
API_KEY_ENABLED:
API_KEY_AUTHENTICATE_AS_DEFAULT_USER:
API_KEY_ENABLED: false
API_KEY_AUTHENTICATE_AS_DEFAULT_USER: false
API_KEY_AUTO_PROVISIONING:
KEYCLOAK_ENABLED: true
KEYCLOAK_URL: http://keycloak:8080
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/shared/docker-compose-with-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ services:
WEBHOOK_PARALLELISM:
ADMIN_TOKEN:
API_KEY_SALT:
API_KEY_ENABLED:
API_KEY_AUTHENTICATE_AS_DEFAULT_USER:
API_KEY_ENABLED: true
API_KEY_AUTHENTICATE_AS_DEFAULT_USER: false
API_KEY_AUTO_PROVISIONING:
depends_on:
db:
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/shared/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ services:
WEBHOOK_PARALLELISM:
ADMIN_TOKEN:
API_KEY_SALT:
API_KEY_ENABLED:
API_KEY_AUTHENTICATE_AS_DEFAULT_USER:
API_KEY_ENABLED: true
API_KEY_AUTHENTICATE_AS_DEFAULT_USER: false
API_KEY_AUTO_PROVISIONING:
depends_on:
db:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ services:
identus-cloud-agent:
image: ghcr.io/hyperledger/identus-cloud-agent:${AGENT_VERSION}
environment:
API_KEY_ENABLED: true
API_KEY_AUTHENTICATE_AS_DEFAULT_USER: false
PRISM_NODE_HOST: host.docker.internal
PRISM_NODE_PORT:
CASTOR_DB_HOST: postgres
Expand All @@ -41,7 +43,6 @@ services:
DIDCOMM_SERVICE_URL:
REST_SERVICE_URL:
POLLUX_STATUS_LIST_REGISTRY_PUBLIC_URL:
API_KEY_ENABLED:
STATUS_LIST_SYNC_TRIGGER_RECURRENCE_DELAY: 5 seconds
DID_STATE_SYNC_TRIGGER_RECURRENCE_DELAY: 5 seconds
# Secret storage configuration
Expand Down

0 comments on commit 2fb833a

Please sign in to comment.