Skip to content

docs(osapi): add secret create - #708

Merged
retr0h merged 1 commit into
mainfrom
docs/secret-create-update-404
Dec 4, 2026
Merged

retr0h merged 1 commit into
mainfrom
docs/secret-create-update-404

Conversation

@retr0h

@retr0h retr0h commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Depends: osapi-io/osapi#1708

The design pages for osapi#1708 (osapi#1666). CONTRIBUTING says one endpoint does not both create and update, and an update of a thing that is absent is an error.

  • vaults.md: the table has POST /api/secret/{vault} (osapi client secret create). create takes the name in the body and answers 201 with Location. A key that exists is 409, whatever its value; create checks only the list of keys. update of a key that is not there is 404. The page says that create lists the keys before it writes, and that two creates of one new key at the same time can both write. The example writes with create, then update.
  • endpoints.md: Location takes one field or more, joined by / and escaped. The file row has the 404 of an update. The secret group has seven methods, and the count is 46 operations (specs#710, merged, gave 45).
  • secrets.md, agent-skills.md: put a value in with secret create.
  • osapi-lab/README.md: the controller role writes a missing key with create and a different value with update (osapi-lab PR to follow).

Component PR: osapi-io/osapi#1708

🤖 Generated with Claude Code

@retr0h

retr0h commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Standards review: changes requested.

1 violation.

  1. PR title is 85 characters. Rule: 50 or fewer. Fix: for example docs(osapi): add secret create.

The pages otherwise pass: no em dash, no MUST, STE-style sentences, one subject in each page. just test not run here; CI covers it.

@retr0h retr0h removed the needs-standards-review The author asks for the independent standards review label Nov 28, 2026
@retr0h retr0h changed the title docs(osapi): secret create makes a key, and an update of an absent key or file is 404 docs(osapi): add secret create Nov 28, 2026
@retr0h
retr0h force-pushed the docs/secret-create-update-404 branch from 0631720 to 3abb3d3 Compare November 28, 2026 01:14
@retr0h retr0h added needs-standards-review The author asks for the independent standards review needs-code-review The author asks for the independent code review labels Nov 28, 2026
@retr0h

retr0h commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Standards review: approved. The diff is unchanged and passed my earlier review; the title is now short.

@retr0h retr0h added standards-reviewed An independent reviewer checked this PR against the standards and removed needs-standards-review The author asks for the independent standards review labels Nov 28, 2026
@retr0h

retr0h commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Code review: approved

Checked against osapi#1708 (open): create takes the name in the body, answers 201 with Location, 200 for the same value (constant-time compare) and 409 for a different one; update of a missing key is 404; create/update read before writing, so two concurrent creates can both write (the page says so); the Location multi-field rule, the file-update 404, the POST row in the route table, and the skill/secrets text all match that diff. The lab README matches osapi-lab#112. Merge after osapi#1708.

@retr0h retr0h added code-reviewed An independent reviewer checked correctness, bugs and edge cases and removed needs-code-review The author asks for the independent code review labels Nov 28, 2026
@retr0h
retr0h force-pushed the docs/secret-create-update-404 branch 2 times, most recently from f195a2e to 9521a3f Compare November 28, 2026 01:33
secret create makes a key, with the name in the body. An update of a
key or a file that is not there is 404. Location takes several fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@retr0h
retr0h force-pushed the docs/secret-create-update-404 branch from 9521a3f to 7765ab3 Compare November 28, 2026 02:10
@retr0h retr0h added needs-code-review The author asks for the independent code review needs-standards-review The author asks for the independent standards review standards-reviewed An independent reviewer checked this PR against the standards and removed standards-reviewed An independent reviewer checked this PR against the standards code-reviewed An independent reviewer checked correctness, bugs and edge cases needs-standards-review The author asks for the independent standards review labels Nov 28, 2026
@retr0h

retr0h commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Standards review: approved (head 7765ab3). Checked: the pages match osapi#1708 (merged) as it is on main. create answers 201 with Location, a key that exists is 409 whatever its value (the code and its Explain text say the same), and update of an absent key is 404. The counts are 46 operations and secret (7). The Location rule for more than one field, the file 404, and the skill and secrets text are updated, and the lab README matches osapi-lab#112. STE sentences, no em dash, no MUST. The component PR has Specs: back to this one. The title and commit subject are 30 characters, with the trailer.

@retr0h

retr0h commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Code review (head 7765ab3): approved
True of osapi main: create is POST with the key in the body, 201 with Location, 409 for an existing key, update of an absent key is 404 (same for file update), create lists the keys first; secret has 7 methods and the controller has 46 operations in ten groups (counted with osapi dsl endpoint list).

@retr0h retr0h added code-reviewed An independent reviewer checked correctness, bugs and edge cases and removed needs-code-review The author asks for the independent code review labels Dec 4, 2026
@retr0h
retr0h merged commit 5f9704d into main Dec 4, 2026
5 checks passed
@retr0h
retr0h deleted the docs/secret-create-update-404 branch December 4, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-reviewed An independent reviewer checked correctness, bugs and edge cases kind/yaml standards-reviewed An independent reviewer checked this PR against the standards

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant