You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add more details about explicit version management (#156)
As a follow-up to #151, add a bit more prose to the docs about the existence of
explicitly-managed version numbers, and some recommendations about when to use
them.
Copy file name to clipboardExpand all lines: docs/api.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# setec API
2
2
3
3
> WARNING: This API is still under active development, and subject to change.
4
-
> This document is up-to-date as of 11-May-2024.
4
+
> This document is up-to-date as of 15-Jan-2026.
5
5
6
6
The setec service exports an API over HTTPS. All methods of the API are called
7
7
via HTTPS POST, with request and response payloads transmitted as JSON.
@@ -33,8 +33,8 @@ The service defines named _actions_ that are subject to access control:
33
33
34
34
-`put`: Denotes permission to put a new value of a secret.
35
35
36
-
-`create-version`: Denotes permission to create a specific version of a secret, but not
37
-
override an existing version.
36
+
-`create-version`: Denotes permission to create a specific version of a
37
+
secret, but not overwrite an existing version.
38
38
39
39
-`activate`: Denotes permission to set one one of of the available versions of
40
40
a secret as the active one.
@@ -130,7 +130,10 @@ The service defines named _actions_ that are subject to access control:
130
130
secret, the server reports the existing active version without modifying the
131
131
store.
132
132
133
-
-`/api/create-version`: Creates a specific version of a secret, sets its value and immediately activates that version. It fails if this version of the secret already has a value. The specified version must be > 0.
133
+
-`/api/create-version`: Creates a new version of a secret, sets its value and
134
+
immediately activates that version. It fails if the specified version number
135
+
has already been used for this secret (even if deleted). The specified
136
+
version number must be > 0.
134
137
135
138
**Requires:**`create-version` permission for the specified name.
0 commit comments