romaine-auth builds on auth-client; its own commands move to internal/client (AUT-14) #218

Merged
merge-queue merged 2 commits from use-auth-client into main 2026-12-01 04:54:58 -08:00
Owner

The library home tools import moved to auth-client (auth-client#1), so a release of auth no longer sends every Go tool an update. Work package: AUT-14.

Removed: client/machine.go, bao.go, openproject.go, the key and file-permission code and their tests (now in auth-client), and internal/netclient (auth-client and romaine-auth use the shared netclient).

Moved: the rest of client/ becomes internal/client, so no other repository can import auth again. It is romaine-auth's own commands: enroll, personal sign-in, SSH, Azure and break-glass grants, approvals, tailnet, the PC certificate, agent devices and continue. Their code is unchanged apart from calling auth-client by name; Enroll and the small auth-call helpers (post, exchangeInto, exchangeWith) are in internal/client/machine.go, built on auth-client's Post and ExchangeWith.

Behavior: romaine-auth is the same except for the shared netclient: the first retry pause is one second instead of half a second, and OpenBao LIST is no longer resent after it was sent.

Held: this lands only once no active repository requires github.com/romaine-life/auth. Its release sends a dependency update to every repo still requiring it, and in one whose code (or a dependency's) still imports auth/client, that update would fail to build.

🤖 Generated with Claude Code

The library home tools import moved to [auth-client](https://forgejo.romaine.life/romaine-life/auth-client) (auth-client#1), so a release of auth no longer sends every Go tool an update. Work package: [AUT-14](https://openproject.home.romaine.life/wp/AUT-14). **Removed:** `client/machine.go`, `bao.go`, `openproject.go`, the key and file-permission code and their tests (now in auth-client), and `internal/netclient` (auth-client and `romaine-auth` use the shared [netclient](https://forgejo.romaine.life/romaine-life/netclient)). **Moved:** the rest of `client/` becomes `internal/client`, so no other repository can import auth again. It is `romaine-auth`'s own commands: enroll, personal sign-in, SSH, Azure and break-glass grants, approvals, tailnet, the PC certificate, agent devices and continue. Their code is unchanged apart from calling auth-client by name; `Enroll` and the small auth-call helpers (`post`, `exchangeInto`, `exchangeWith`) are in `internal/client/machine.go`, built on auth-client's `Post` and `ExchangeWith`. **Behavior:** `romaine-auth` is the same except for the shared netclient: the first retry pause is one second instead of half a second, and OpenBao LIST is no longer resent after it was sent. **Held:** this lands only once no active repository requires `github.com/romaine-life/auth`. Its release sends a dependency update to every repo still requiring it, and in one whose code (or a dependency's) still imports `auth/client`, that update would fail to build. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
auth requires auth-client v0.1.0 (AUT-14)
All checks were successful
Suite default / check-logs (pull_request) Successful in 34s
Suite go / check-test-linux (pull_request) Successful in 44s
Suite release / reserve (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite web-app / publish (pull_request) Has been skipped
Suite web-app / publish-static (pull_request) Has been skipped
Suite tofu / check-plan (pull_request) Has been skipped
Suite web-app / check-image (pull_request) Has been skipped
Suite release / check-manifest (pull_request) Has been skipped
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite tofu / apply (pull_request) Has been skipped
Suite web-app / scope (pull_request) Successful in 26s
Suite release / scope (pull_request) Successful in 31s
Suite release / deliver-prune (pull_request) Has been skipped
Suite go / check-test-windows (pull_request) Successful in 1m23s
Suite go / check-format (pull_request) Successful in 34s
Suite tofu / reused-checks (pull_request) Successful in 24s
Suite default / check-rules (pull_request) Successful in 33s
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Successful in 1m0s
Suite go / reused-checks (pull_request) Successful in 15s
Suite web-app / check-test (.) (pull_request) Successful in 2m47s
Suite default / reused-checks (pull_request) Successful in 15s
Suite release / check-package (pull_request) Successful in 44s
Suite release / reused-checks (pull_request) Successful in 12s
Suite web-app / reused-checks (pull_request) Successful in 14s
merge-queue landed on main
70e0f1adc2
merge-queue deleted branch use-auth-client 2026-12-01 04:54:58 -08:00
Sign in to join this conversation.
No description provided.