Docker image: secret left behind between layers
A container image built in the CI pipeline was exported via docker save to the service_image.tar archive. During the build, the developer copied the production environment file into /app/secrets/, then noticed the mistake and deleted it with rm -f in the next RUN step.
However, Docker images consist of immutable layers: deleting a file in a subsequent layer only hides it with a whiteout marker (.wh.<fayl_nomi>), while the original file in the previous layer remains unchanged.
Analyze manifest.json and each layer.tar inside service_image.tar (you can also view the image history in history in the config JSON). Find the production .env file that was deleted with a whiteout in a later layer, and decode the DEPLOY_TOKEN_B64 value inside it from base64. Note: the image also contains non-deleted decoy tokens such as dev.env and staging.env. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).