Skip to content

Sync dev to main#163

Merged
tis24dev merged 4 commits intomainfrom
dev
Feb 27, 2026
Merged

Sync dev to main#163
tis24dev merged 4 commits intomainfrom
dev

Conversation

@tis24dev
Copy link
Owner

  • Add Telegram pairing step to installer
  • Support non-interactive upgrade auto-confirm
  • Anticipate privilege context detection and reuse it in collectors
  • Detect limited-privilege contexts beyond shifted userns

Introduce an optional Telegram pairing/verification step in the installer (CLI and TUI) for centralized bot mode. Adds a TUI wizard (internal/tui/wizard/telegram_setup_tui.go) with retry/skip behavior, identity detection, status feedback and persistence checks, plus extensive unit tests. Wire CLI to display Server ID and perform an interactive verification loop using notify.CheckTelegramRegistration. Update docs (CLI_REFERENCE.md, CONFIGURATION.md, INSTALL.md) to document the pairing flow and install log changes, and add logging hooks to record non-blocking failures and user choices.
Add support for auto-confirming the --upgrade flow by accepting a trailing 'y' (e.g. --upgrade y). Introduces Args.UpgradeAutoYes, extractUpgradeAutoYesArgs to preprocess os.Args, and updates Parse() to use the processed args. The upgrade command now respects UpgradeAutoYes and skips the interactive prompt (with a debug log). Documentation updated with examples and a unit test added to validate parsing behavior.
Move the unprivileged/rootless heuristic earlier in startup (right after logging Environment: ...), emit one INFO summary (Privilege context: ...) plus detailed DEBUG diagnostics, and inject the cached result into the orchestrator so collectors reuse it for privilege-sensitive command handling without re-reading /proc. Update environment + orchestrator tests for the new structured details and injection.
Extend the privilege-context detector to also use container signals (systemd container, container env, docker/podman markers, cgroup hints) and non-root EUID.
Improve the startup INFO Privilege context: ... line while keeping full evidence in DEBUG.
Update the privilege-sensitive SKIP hint and related docs/tests to match the broader “limited privileges” semantics.
@tis24dev tis24dev merged commit b7d9670 into main Feb 27, 2026
7 checks passed
@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

❌ Patch coverage is 84.78702% with 75 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/environment/unprivileged.go 68.91% 51 Missing and 9 partials ⚠️
internal/tui/wizard/telegram_setup_tui.go 96.82% 6 Missing and 2 partials ⚠️
internal/cli/args.go 80.00% 3 Missing and 2 partials ⚠️
internal/backup/collector.go 75.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

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