Skip to main content

Keycloak-based dev STS helper for the ARP Standard.

Project description

ARP STS Keycloak

Keycloak-based dev STS helper for the ARP Standard. This package provides a small CLI that writes a ready-to-run Keycloak docker compose file plus a preconfigured arp-dev realm with ARP clients.

Quick start

pip install arp-sts-keycloak
arp-sts-keycloak init --output ./arp-keycloak
cd ./arp-keycloak
docker compose up -d

Keycloak will be available at http://localhost:8080.

Default realm

The bundled realm is named arp-dev and includes the following clients:

  • arp-daemon (client secret: arp-daemon-secret)
  • arp-runtime (client secret: arp-runtime-secret)
  • arp-tool-registry (client secret: arp-tool-registry-secret)

Each client is configured for client-credentials flow and includes an audience mapper so the access token aud claim matches the client ID.

Get a token (client credentials)

curl -sS \
  -X POST \
  http://localhost:8080/realms/arp-dev/protocol/openid-connect/token \
  -d 'grant_type=client_credentials' \
  -d 'client_id=arp-runtime' \
  -d 'client_secret=arp-runtime-secret'

Use the resulting access_token as Authorization: Bearer <token>.

Service configuration hints

  • Issuer: http://localhost:8080/realms/arp-dev
  • OIDC discovery: http://localhost:8080/realms/arp-dev/.well-known/openid-configuration
  • Audience: match the ARP service ID (for example arp-runtime)

Notes

  • This package is intended for local development and testing.
  • arp-sts-keycloak init writes two files: docker-compose.yml and realm-export.json.
  • Use --force to overwrite existing files.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arp_sts_keycloak-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arp_sts_keycloak-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file arp_sts_keycloak-0.1.0.tar.gz.

File metadata

  • Download URL: arp_sts_keycloak-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for arp_sts_keycloak-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ac22d93470ea39981815769b40bd301b37f24e0a1409be795a4e7b748c2dd984
MD5 429383824dd3f7a4d00100627f78f8b2
BLAKE2b-256 c7279954de322a2e5f9644a0ecfd4a5675d71457ad7a1dac0ebcd5164bd99204

See more details on using hashes here.

Provenance

The following attestation bundles were made for arp_sts_keycloak-0.1.0.tar.gz:

Publisher: release.yml on AgentRuntimeProtocol/ARP_STS_KeyCloak

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file arp_sts_keycloak-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for arp_sts_keycloak-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2251001f1177e564f99e5f5ad1ac4eaf02da58f9a3b24b2402835facc7c7bfcc
MD5 10c73bca2aaf6d4abd8ef5b3e3975e00
BLAKE2b-256 2367efaf4045a8ce99fa905090b93d53d5a14fee406fd48eb8055e9aa15cc68d

See more details on using hashes here.

Provenance

The following attestation bundles were made for arp_sts_keycloak-0.1.0-py3-none-any.whl:

Publisher: release.yml on AgentRuntimeProtocol/ARP_STS_KeyCloak

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page