Skip to content

docs(deb): describe turning REST auth on per device (R-1, S-38) - #37

Merged
TurkerMertkan merged 1 commit into
developfrom
s38-device-auth-docs
Nov 23, 2026
Merged

TurkerMertkan merged 1 commit into
developfrom
s38-device-auth-docs

Conversation

@TurkerMertkan

Copy link
Copy Markdown
Collaborator

Summary

  • DEPLOYMENT_CHECKLIST §7a: turning REST auth on/off per device with an EnvironmentFile drop-in (/etc/sandstar/auth.env, root 0600), verification steps and rollback. No values in the repo.
  • HowToUses/03_WEB_EDITOR.md: editor login on a device with auth on.
  • OVERVIEW: the packaged unit is open on a fresh install; the per-device drop-in turns auth on.

Test plan

  • Procedure applied on the test device: open reads 200; unauthenticated writes, /live/sedonaState, /api/sox/tree, PUT /file 401; editor SCRAM login and cookie PUT /file 200
  • No code change; docs gate clean

🤖 Generated with Claude Code

https://claude.ai/code/session_01QKRNiek8qYRoRt7dcrDDVC

The packaged unit starts with no auth. On the test device auth is now
on through a device-local EnvironmentFile drop-in; this documents the
procedure without any values.

- DEPLOYMENT_CHECKLIST §7a: /etc/sandstar/auth.env (root, 0600) with
  SANDSTAR_AUTH_USER/PASS, optional SANDSTAR_AUTH_TOKEN and
  SANDSTAR_WS_ALLOWED_ORIGINS; auth.conf drop-in with EnvironmentFile;
  verification (open reads 200, unauthenticated writes and editor
  endpoints 401, log line, password not in systemctl show, editor
  login); how to turn it off.
- HowToUses/03_WEB_EDITOR.md: logging in to a device with auth on.
- OVERVIEW: packaged unit is open on a fresh install; per-device drop-in
  turns auth on; editor logs in since S-32b.

No code change. Verified on the test device (2026-11-23): open reads
200; unauthenticated pointWrite, HEAD /live/sedonaState, /api/sox/tree
and PUT /file 401; editor SCRAM login, tree loaded, cookie PUT /file 200.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QKRNiek8qYRoRt7dcrDDVC
@TurkerMertkan
TurkerMertkan merged commit e37cbe1 into develop Nov 23, 2026
2 checks passed
@TurkerMertkan
TurkerMertkan deleted the s38-device-auth-docs branch November 23, 2026 14:56
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.

1 participant