Skip to content

Repository files navigation

Asgard

Asgard is a Kerberos appliance. It runs a Heimdal KDC with bifrost, krb5_admind, kpasswd, snapshot support, and the supporting admin tooling.

The current published image is:

ghcr.io/chapeltech/asgard-kdc:sha-280c050b28b7

Use the included compose file:

docker-compose.yml

Pull the Image

If the GitHub Container Registry package is public:

docker pull ghcr.io/chapeltech/asgard-kdc:sha-280c050b28b7

Then pull through compose:

docker compose pull

Configure

export ASGARD_IMAGE=ghcr.io/chapeltech/asgard-kdc:sha-280c050b28b7
export ASGARD_HOSTNAME=kdc.example.com

ASGARD_HOSTNAME must resolve to the Docker host from clients. Use real host naming, or add it to client /etc/hosts.

First Start

Start the appliance:

docker compose up -d kdc

Initialize the realm inside the running container:

docker compose exec kdc /cmd setup-master EXAMPLE.COM

The container starts its services after initialization completes.

Create an Admin Principal

docker compose exec kdc /cmd create-admin admin
docker compose exec kdc krb5_admin -l modify admin attributes-=needchange

The first command prints the generated admin password.

Export Client Files

docker compose exec kdc /cmd print-krb5-conf > krb5.conf
docker compose exec kdc /cmd print-ca > ca-pub.pem

Install krb5.conf on clients and make sure the hostname configured in ASGARD_HOSTNAME resolves to the Docker host.

Operate

View logs:

docker compose logs -f kdc

Stop:

docker compose stop

Start again:

docker compose start

Remove the container:

docker compose down

With the stock docker-compose.yml, removing the container removes the initialized realm state too. Use stop and start for normal operation.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages