Skip to content
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
dev0zzz merged 1 commit into
mainfrom
fix/public-file-permissions
Aug 4, 2026
Merged

fix: force world-readable perms on served files#15
dev0zzz merged 1 commit into
mainfrom
fix/public-file-permissions

Conversation

@dev0zzz

@dev0zzz dev0zzz commented Aug 4, 2026

Copy link
Copy Markdown
Owner

The cib checkout on the CI box writes files with umask 027; vite copies public/ assets mode-preserving, so client-metadata.json, favicon and icons ended up 640 root:root in the image. nginx workers run as nginx → 403 on exactly those files, which broke OAuth login on v0.9.1 (the client_id URL itself was unreachable).

Fix: chmod -R a+rX on 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

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).
@dev0zzz
dev0zzz merged commit f0529bb into main Aug 4, 2026
2 checks passed
@dev0zzz
dev0zzz deleted the fix/public-file-permissions branch August 4, 2026 10:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant