Closed FloSch62 closed 1 week ago
@FloSch62 help me understand this a bit better. The clab-devcontainer is built once -- during the container build at the clab release time. At that time the gpg key is valid.
I can see how the key becomes invalid later, but since the image is already built it doesn't try to make use of the key either. So I wonder when is the failure happenning?
Is it with any apt update
that you trigger during the devcontainer startup or smth else?
Yes exactly, as soon the key is expired like in devcontainer 0.56, any apt update will fail. This "only" gets a problem if you need to install something on top like Ansible. Clab itself is not impacted
Description Users working with older releases of clab-devcontainer (e.g., version 0.56.0) are encountering issues due to an expired GitHub CLI GPG key. When these older containers are launched in environments like GitHub Codespaces, particularly when the devcontainer.json includes commands that use
apt-get
, the container fails to initialize properly and falls back to recovery mode.The error appears as:
Impact
Current Implementation In these older releases, the Dockerfile sets up the GitHub CLI repository using:
Proposed Solution Update the Dockerfile in a new release to use the githubcli-archive-keyring package for managing GPG keys: