Repository navigation
Conversation
The omp role installed omp but never pointed it at the fleet's auth broker (`omp auth-broker`, running on punjab), so a rebuilt machine had an empty ~/.omp/agent/config.yml and no provider credentials until someone ran /login by hand. The role now sets auth.broker.url from group_vars and, when Bitwarden is unlocked, writes auth.broker.token from the item omp-auth-broker-token. A locked vault leaves an existing token alone. The config file is set to 0600 and the role reports `omp auth-broker status`. just seed-omp-broker (run on punjab) creates the Bitwarden item from `omp auth-broker token`, which prints the token without rotating it. The broker's own systemd unit on punjab is still hand-made and unmanaged.
This was referenced Oct 25, 2026
Read the broker token over Tailscale SSH when seeding Bitwarden, and preserve the vault when the server is unreachable. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: James Reilly <5840441+hanthor@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: James Reilly <5840441+hanthor@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: James Reilly <5840441+hanthor@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: James Reilly <5840441+hanthor@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: James Reilly <5840441+hanthor@users.noreply.github.com>
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
On himachal the Ansible
omprole aborted atDeploy omp-kiro-provider config(/home/james/.config/omp does not exist), so the routing merge,omp-routeand the auth-broker config never ran and~/.omp/agent/config.ymlstayed empty. Ansible aborts a whole role on one failed task.What
units/*.sh): idempotent, neverset -e; a failing step is recorded and the later independent steps still run.units/lib.shhasstep/soft/note/finish/install_if_changed/bw_session.mise.toml, one task per unit, parallel,--continue-on-error).scripts/run-units.sh [--no-secrets] [--tags a,b]is the single wrapper; without mise it falls back to running units sequentially so Termux/musl hosts keep updating.units/omp.sh), including the auth-broker client config (URL inunits/omp/auth-broker.conf, token from Bitwarden when unlocked).roles/ompis removed.just apply,apply-nosecrets,apply-tags,dotfilesrun the wrapper after Ansible and combine exit codes;just unitsruns it directly.miseadded tocore_brewsandjust doctor.units/,mise.tomlandscripts/run-units.share intentionally not carved out of CODEOWNERS (the fleet timer executes them).Tests
tests/test_omp_unit.py(fresh-HOME regression, idempotency, failure isolation) andtests/test_units_registry.py(mise.toml /units//ALL_UNITS/ tag map stay consistent).