Access audit logs and troubleshoot pipeline errors in Container Registry
Zuletzt aktualisiert am
Maintaining visibility into your Container Registry and ensuring smooth CI/CD pipeline operations are key for managing your software supply chain. This guide covers how to monitor system actions and troubleshoot common rate-limiting errors.
Audit logs
Section titled “Audit logs”STACKIT Container Registry keeps a detailed record of all actions performed within the system. This includes user authentications, image pushes and pulls, role assignments, and project modifications.
View logs
Section titled “View logs”You can access these records by navigating to the Logs folder within your project in the Container Registry UI. This view provides a timestamped trail of who performed what action, making it highly useful for security audits and debugging.
Retention policy
Section titled “Retention policy”Troubleshooting pipeline errors (HTTP 429 / 401)
Section titled “Troubleshooting pipeline errors (HTTP 429 / 401)”A common issue encountered in automated CI/CD pipelines is receiving an HTTP 429 Too Many Requests error when attempting to interact with the registry.
Understand the root cause
Section titled “Understand the root cause”In the STACKIT Container Registry, a 429 error is not caused by running a high volume of successful docker pull or docker push commands.
Instead, a 429 error is a security measure triggered by a high number of authentication failures (HTTP 401 Unauthorized) associated with the same account.
The rate limit rule
Section titled “The rate limit rule”The system monitors failed logins to protect against brute-force attacks and misconfigured automated scripts. The exact threshold is:
- 5 authentication errors (
401s) within a 30-second window.
The consequence and cooldown
Section titled “The consequence and cooldown”If a pipeline or user hits this threshold:
- The credentials used for those requests are temporarily blocked. 2. Any subsequent requests
using those credentials will immediately return a
429 Too Many Requestserror. 3. The system enforces a mandatory cooldown period of 5 minutes.
How to fix it
Section titled “How to fix it”If your pipeline is failing with a 429 error:
- Stop the pipeline immediately to prevent it from resetting or extending the cooldown period. 2. Wait out the 5-minute cooldown period. 3. Check your credentials. Ensure that the Robot Account token or STACKIT user password configured in your CI/CD variables is correct and has not expired. 4. Once the credentials are fixed and the 5 minutes have passed, trigger the pipeline again.