This repository was archived by the owner on Aug 5, 2026. It is now read-only.
fix: force world-readable perms on served files - #15
Merged
Conversation
The cib checkout writes files with umask 027 and vite copies public/ assets mode-preserving, so client-metadata.json et al. ended up 640 root:root in the image — nginx workers got 403, which broke OAuth login (the client_id URL itself was unreachable).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The cib checkout on the CI box writes files with umask 027; vite copies
public/assets mode-preserving, soclient-metadata.json, favicon and icons ended up640 root:rootin the image. nginx workers run asnginx→ 403 on exactly those files, which broke OAuth login on v0.9.1 (theclient_idURL itself was unreachable).Fix:
chmod -R a+rXon the web root in the serve stage — robust against whatever modes the checkout produces.Prod was hot-fixed in the running container (ephemeral); this makes it stick from the next tag on.
🤖 Generated with Claude Code
https://claude.ai/code/session_01KcHCSzjBLakNqJMdWP4eke