Skip to content

Add cohesive gateway registration commands - #28

Merged
johnnygreco merged 5 commits into
mainfrom
johnny/privacy-guard-gateway-registration-commands
Jul 29, 2026
Merged

Add cohesive gateway registration commands#28
johnnygreco merged 5 commits into
mainfrom
johnny/privacy-guard-gateway-registration-commands

Conversation

@johnnygreco

@johnnygreco johnnygreco commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

What changed

  • rename the gateway setup command to add-gateway-registration
  • add remove-gateway-registration --name NAME with the same config-path resolution
  • preserve unrelated TOML settings and make absent-name removal idempotent
  • update Privacy Guard documentation, examples, and CLI/configuration tests

Why

Privacy Guard could add or update a named OpenShell gateway middleware registration, but had no matching way to remove one. The paired command names now make the lifecycle explicit and cohesive.

User impact

Operators can add and remove Privacy Guard registrations without hand-editing gateway TOML. Removing a missing registration is a successful no-op; duplicate named registrations fail safely.

Validation

  • make check (252 tests; formatting, lint, typing, import, build, and dependency audit)
  • python3 tests/test_render_dev_notes.py
  • scripts/build-docs.sh
  • generated operations page served and verified locally

Panel review

Three independent reviewers covered configuration correctness and safety, CLI/API maintainability and operator experience, and tests/docs/integration. Review findings around TOML source boundaries, comment preservation, structural post-state validation, and recovery errors were fixed. The final focused re-review was clean.

@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown

Documentation preview

The preview has been removed.

@johnnygreco
johnnygreco force-pushed the johnny/privacy-guard-gateway-registration-commands branch from 61085a0 to 75cfaa4 Compare July 29, 2026 17:15
@johnnygreco
johnnygreco marked this pull request as ready for review July 29, 2026 18:51
@johnnygreco
johnnygreco merged commit 0d5fe8e into main Jul 29, 2026
9 checks passed
@johnnygreco
johnnygreco deleted the johnny/privacy-guard-gateway-registration-commands branch July 29, 2026 19:19
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