Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pankalog/docker-distribution-keycloak

A repository with reproducible evidence for an issue with connecting CNCF distribution with Keycloak.
https://github.com/pankalog/docker-distribution-keycloak

Last synced: 25 days ago
JSON representation

A repository with reproducible evidence for an issue with connecting CNCF distribution with Keycloak.

Awesome Lists containing this project

README

        

# Keycloak and CNCF Distribution Docker-compose

This repository was made to reproduce the issue of `failed to verify token: token signed by untrusted key with ID` by Distribution upon login of a user to the registry. There is a mismatch between the reported KIDs from Keycloak and Distribution.

This repository was created from [this issue](https://github.com/distribution/distribution/issues/2875), to reproduce the issue easily.

# Launching, reproduction

To reproduce the issue, run the docker-compose project:

```bash
docker compose up -p distributionRepro up -d
```
Wait a minute or two until Keycloak is up and running, and then try to log in to the registry with `testuser` and `secret` as username and password respectively:

```bash
docker login https://localhost:5001 -u testuser -p secret
```
**You need to re-download the adapter config and replace the certificates in the adapterConfig/certs directory before running!**
*Maybe I will be able to use this as a demo repository down the line!*