Skip to content

Fix ignored App options and release 1.1.1 - #27

Merged
ITSpecialist111 merged 1 commit into
mainfrom
fix/options-permission
Jul 28, 2026
Merged

Fix ignored App options and release 1.1.1#27
ITSpecialist111 merged 1 commit into
mainfrom
fix/options-permission

Conversation

@ITSpecialist111

Copy link
Copy Markdown
Owner

Fixes #26. Supervisor writes /data/options.json as root with mode 0600 (supervisor/utils/json.py calls jsonfile.chmod(0o600)), so the unprivileged container user could not read it and every option silently fell back to defaults. The entrypoint now stages a readable copy into tmpfs via AI_OPTIONS_PATH and then drops privileges with su-exec, leaving the Supervisor-owned file untouched. Verified with Docker against a root-owned 0600 options file: published 1.1.0 returns refresh_interval=300 plus the permission warning, the fixed image returns 987. CI now asserts the runtime user is inspector and that a root-owned 0600 options file is read. Adds .gitattributes so the shell script cannot be checked out with CRLF. Bumps to 1.1.1.

@ITSpecialist111
ITSpecialist111 merged commit 65ee6f8 into main Jul 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App options are silently ignored: /data/options.json is unreadable by the non-root user

1 participant