Repository navigation
feat(agent): create registers a pending agent's key through POST /AgentKeyRegister #659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
69e3955
feat(agent): create registers a pending agent's key through POST /Age…
tps-flint d0781ed
fix(agent): scope the registration claim, cause-accurate refusals, no…
tps-flint 8347e8b
Merge branch 'main' into feat/512-create-registers-key
tps-flint bcbd84f
fix(agent): report an unconfirmed key registration when Flair cannot …
tps-flint 102b519
fix(agent): read the stored key back after an unconfirmed registratio…
tps-flint 7489b82
round: address the review verdict (Codex fix round)
tps-flint 6a16efa
round: address the review verdict (Codex fix round)
tps-flint 04d214e
round: address the review verdict (Codex fix round)
tps-flint 66a4cf7
round: address the review verdict (Codex fix round)
tps-flint File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| - **`tps agent create` registers a `pending` agent's key through Flair's `POST | ||
| /AgentKeyRegister` when the route accepts it and the stored key reads back | ||
| equal.** It sends the generated key through that route over its operator | ||
| credential. Definitive refusals exit non-zero with the agent, the Flair URL, | ||
| the refusal name and a remedy; an error response with no recognized refusal, | ||
| or an unreadable error body, remains unconfirmed with its HTTP status; an | ||
| unrecognized 404 or 405 names the minimum Flair | ||
| version that serves the route as the likely cause. After a successful or | ||
| ambiguous POST, a read-back that fails or does not return the generated key | ||
| reports this attempt unconfirmed with a re-run-create remedy. Flair | ||
| drops `publicKey` on `Agent` PUT and PATCH. |
2 changes: 1 addition & 1 deletion
2
.changelog/unreleased/fixed-512-create-reports-real-registration.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| - **`tps agent create` prints success only after the generated key reads back equal from Flair.** It re-reads the agent's stored `publicKey` over the operator credential; when Flair is reachable, it exits non-zero unless the stored key reads back equal to the generated key, naming the agent, the Flair URL and the remedy. | ||
| - **When Flair is reachable, `tps agent create` reports registration only after the generated key reads back equal.** It re-reads the agent's stored `publicKey` over the operator credential; it exits non-zero unless the stored key reads back equal to the generated key, naming the agent, the Flair URL and the remedy. |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.