Skip to content

Fix permissions for /app/.cache/ in the container image#1178

Merged
simu merged 1 commit into
masterfrom
fix/container-image-permissions
Jul 16, 2025
Merged

Fix permissions for /app/.cache/ in the container image#1178
simu merged 1 commit into
masterfrom
fix/container-image-permissions

Conversation

@simu

@simu simu commented Jul 16, 2025

Copy link
Copy Markdown
Member

We now populate /app/.cache/commodore/tools with the required external tools, but other tooling (e.g. Helm) also needs to be able to write to /app/.cache (and commodore itself needs to be able to write to /app/.cache/commodore/token). While refactoring the Dockerfile, we forgot to extend the permission adjustments for /app to also cover existing directories in /app/.cache.

This commit ensures that everything in /app has group 0 and that directories /app/.cache/ and /app/.cache/commodore are writable by group 0.

Follow-up to #1174

Checklist

  • Keep pull requests small so they can be easily reviewed.
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency, internal
    as they show up in the changelog
  • Link this PR to related issues.

We now populate `/app/.cache/commodore/tools` with the required external
tools, but other tooling (e.g. Helm) also needs to be able to write to
`/app/.cache` (and commodore itself needs to be able to write to
`/app/.cache/commodore/token`). While refactoring the Dockerfile, we
forgot to extend the permission adjustments for `/app` to also cover
existing directories in `/app/.cache`.

This commit ensures that everything in `/app` has group 0 and that
directories `/app/.cache/` and `/app/.cache/commodore` are writable by
group 0.
@simu simu requested a review from a team as a code owner July 16, 2025 15:03
@simu simu added the bug Something isn't working label Jul 16, 2025
@simu simu requested a review from a team July 16, 2025 15:04
@simu simu merged commit 8515d04 into master Jul 16, 2025
20 checks passed
@simu simu deleted the fix/container-image-permissions branch July 16, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants