Repository navigation
Sync main into milestone/next before the v1.12.0 release - #228
Merged
Merged
Conversation
… transactions, sync errors, payment trace, write mode), refused in agent mode and 7 more (#215) ## Summary The CLI gets its operator side: `rail0 admin`, for whoever runs the gateway. The rest is maintenance. - **Operator commands, `rail0 admin`** (#219, #220), new: - `health`, `health --rpc`: the gateway's diagnostics and its view of the chains; the exit code follows the verdict; - `transactions`: across every account, or only the stuck ones; - `sync-errors`, `sync-errors clear`: the indexer callbacks the gateway could not apply; - `trace <payment>`: one payment's transactions, sync errors, webhook deliveries, disputes and operator actions; - `accounts`: search, the whole record, what an account has in motion, switch it off or on; - `wallets`: any account's wallets, what still names an address, the switch; - `onboardings`: the requests, invite, correct, resend, cancel; - `write-mode on|off`: an operator session reads; a write needs write mode, which lasts an hour and is audited on the gateway. None of these runs in agent mode, and agent mode never carries the write-mode token. - **Agent mode never acts with an operator's session** (#226), new. With an operator's session the gateway widens the ordinary commands too (`payments list --scope all`, `payments get` on anyone's payment, `account get --account`, `wallets --account`). The CLI now keeps what the gateway answers at sign-in, and in agent mode it does not carry a stored session that is an operator's, and revokes at once a session opened by `auth login` or by a command's `-p` key when it is one. New error code `operator_session` (exit `4`); `auth status` says when the session is an operator's. - **Hint** for `transaction_in_flight` (#218). - **Security updates** (#216): opentelemetry-go v1.47.0 and Go toolchain 1.26.11, for the two open advisories. - **Dependency** (#213, #221): built against rail0-go v1.11.0, the release that carries the operator service. Nothing changes for a merchant's commands: no flag or output of an existing command is different. One thing changes for an operator: a key whose account holds the operator role no longer works in agent mode, also for that account's own payments. <!-- release:start --> ## rail0 CLI v1.11.0 <!-- release-notes:start --> ### Added - **agent:** agent mode never acts with a gateway operator's session, stored or opened on the spot (operator_session) (#226) - **admin:** operator commands for accounts (search, exposure, switch off and on), wallets (usage, switch) and onboarding requests (invite, correct, resend, cancel) (#220) - **admin:** operator commands under 'rail0 admin' (health, stuck transactions, sync errors, payment trace, write mode), refused in agent mode (#219) ### Changed - Depend on the released rail0-go v1.11.0 instead of a milestone/next pseudo-version (#221) - Hint for transaction_in_flight: the other party's release is already signed or sent (#218) - Fix the opentelemetry-go and net/http advisories: otel v1.47.0, Go toolchain 1.26.11 (#216) - Sync main into milestone/next before the v1.10.1 release (#214) - Build against rail0-go v1.10.2, the latest SDK release (#213) **Full diff:** v1.10.0...v1.11.0 <!-- release-notes:end --> --- **Version:** **minor**, computed from the pull requests merged since v1.10.0 (a breaking change → major, `feat` → minor, anything else → patch). Decided by: - feat(agent): agent mode never acts with a gateway operator's session, stored or opened on the spot (operator_session) (#226) - feat(admin): operator commands for accounts (search, exposure, switch off and on), wallets (usage, switch) and onboarding requests (invite, correct, resend, cancel) (#220) - feat(admin): operator commands under 'rail0 admin' (health, stuck transactions, sync errors, payment trace, write mode), refused in agent mode (#219) Merging this pull request also releases **v1.11.0**: its changes and the version bump ship together, under the one approval. On the push to `main`, `.github/workflows/release.yml` re-runs CI on the merge commit, creates the tag, and GoReleaser builds the binaries and publishes the GitHub release, and posts the release to Slack. The release notes are the text between the `release-notes` markers above, read from this pull request when it merges: edit them here, before merging. _Opened by `bin/release-prepare`._ <!-- release:end -->
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.
Brings the merge commit of the v1.11.0 release (#215) from
mainintomilestone/next, so the next release pull request holds only what is new andbin/release-preparefindsmaincontained in the branch.No change of content beyond what
mainalready has: the changelog and the version of v1.11.0. To be merged with a merge commit (a squash would lose the link tomain).