Skip to main content

Keycloak auditor

Project description

kcwarden - Keycloak Configuration Auditor

kcwarden checks your Keycloak configuration for common misconfigurations and security vulnerabilities.

Installation and Usage

Please see our documentation on the project website.

Development

Docker Image

To build a Docker image with a bundled kcwarden, you can use:

docker build -f Docker/Dockerfile -t kcwarden:0.0.1 .

or

buildah build -f Docker/Dockerfile -t kcwarden:0.0.1 .

It uses a multi-stage build to first build the application as Python wheel and afterwards install this wheel in a second image.

Tests

The unit tests can be run with poetry run pytest.

The integration tests that actually start Keycloak containers using Docker can be executed with poetry run pytest --integration. The Keycloak versions for which the tests are executed can be found in conftest.py. It can be overridden by setting the environment variable INTEGRATION_TEST_KEYCLOAK_VERSIONS to a space-separated list of Keycloak container image tags (see quay.io).

Build the Docs

The documentation is created using MkDocs and lives in the docs directory. The dependencies for MkDocs can be installed using this command: poetry install --with docs. Afterward, the documentation can be built using poetry run mkdocs build. The static output is then located in the site directory. A development server that serves the documentation, watches for changes and automatically re-creates the site can be spun up using poetry run mkdocs serve.

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

kcwarden-0.0.1.tar.gz (108.2 kB view hashes)

Uploaded Source

Built Distribution

kcwarden-0.0.1-py3-none-any.whl (73.4 kB view hashes)

Uploaded Python 3

Supported by

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