Skip to content

Implement authenticated debug-console sessions - #50

Merged
Hrabovszki1023 merged 1 commit into
mainfrom
codex/implement-issue-48
Jul 28, 2026
Merged

Hrabovszki1023 merged 1 commit into
mainfrom
codex/implement-issue-48

Conversation

@Hrabovszki1023

Copy link
Copy Markdown
Owner

Summary

  • authenticate the Pylontech console with login <credential> and require the exact pylon_debug> prompt before polling
  • re-verify and re-authenticate after transport reconnects, with bounded reconnect recovery from Reconnect Waveshare transport automatically after persistent acquisition failure #42
  • fail closed when authentication is rejected or the console leaves debug mode
  • attempt logout on controlled shutdown
  • expose sanitized session mode/authentication health through REST and the read-only web status area
  • support mutually exclusive password or password-file configuration and document Docker Secret plus isolated-network deployment

Why

pwrsys is only available in the authenticated debug console. Without an explicit session lifecycle, rack acquisition repeatedly fails while other read-only commands may still work.

Validation

  • PYTHONPATH=src python -m pytest — 231 passed
  • python -m ruff check . — passed
  • python -m mypy src tests — passed
  • git diff --check — passed

Docker is not installed in the local Windows workspace, so Compose/build and real Waveshare hardware verification remain for the Docker server before merge.

Closes #48

@Hrabovszki1023
Hrabovszki1023 marked this pull request as ready for review July 28, 2026 06:44
@Hrabovszki1023
Hrabovszki1023 merged commit fc830cd into main Jul 28, 2026
2 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.

Implement authenticated debug-console session lifecycle

1 participant