forked from openbao/openbao
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scan operation for recursive listing (openbao#763)
* Add SCAN as logical operation This introduces SCAN as a new logical operation type, either via a GET with ?scan=true or via the SCAN HTTP verb. The intent of SCAN is to allow recursive listing of entries, perhaps using logical.ScanView as a helper. We require a separate operation because we want to permission this distinctly from a LIST: operators may wish to deny users a recursive LIST but grant them a shallow LIST, e.g., for resource usage or to segment secrets in various other ways. Notably, with paginated listing, this can still be rather efficient and need not return all results. Signed-off-by: Alexander Scheel <[email protected]> * Add Scan support to KV Using the new operation, this adds recursive listing (scan) support to KVv2, allowing a user to see all entries in a single call. With future support for a paginated form of ScanView, this can be constrained even in large K/V entries. Resolves: openbao#549 Signed-off-by: Alexander Scheel <[email protected]> * Add Scan(...) support to the API Signed-off-by: Alexander Scheel <[email protected]> * Add support for scanning to CLI Signed-off-by: Alexander Scheel <[email protected]> * Add changelog entry Signed-off-by: Alexander Scheel <[email protected]> * Add RFC to website Signed-off-by: Alexander Scheel <[email protected]> * Add scan operation to policy docs Signed-off-by: Alexander Scheel <[email protected]> --------- Signed-off-by: Alexander Scheel <[email protected]>
- Loading branch information
Showing
27 changed files
with
995 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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,3 @@ | ||
```release-note:feature | ||
**Scanning**: introduce the ability to recursively list (scan) within plugins, adding a separate `scan` ACL capability, operation type, HTTP verb (`SCAN` with `GET` fallback via `?scan=true`), API, and CLI support. This also adds support to the KVv1 and KVv2 engines. | ||
``` |
This file contains 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.