Skip to content

Commit

Permalink
Merge pull request #14 from Conjur-Enterprise/apiv2-documentation
Browse files Browse the repository at this point in the history
CNJR-0000: Update documentation for streaming secret values feature
  • Loading branch information
szh authored and GitHub Enterprise committed Jul 29, 2024
2 parents 129fb57 + 6f26584 commit 6fbab05
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,14 @@ fixed locations, e.g. `/etc/ssl/cert.pem` for an SSL certificate. This can be
accomplished by using symbolic links as described in the
[symbolic link example](examples/symlinks/README.md).

## Provider interactive mode

When available, Summon uses the provider's stream mode to retrieve secrets. Whereas the legacy mode required
a new process to be created for each secret retrieval, the stream mode can fetch multiple secrets in a single
process and allows providers to implement token caching.

If the provider does not support stream mode, Summon uses the legacy mode.

## Contributing

For more info on contributing, please see [CONTRIBUTING.md](CONTRIBUTING.md).
Expand Down
8 changes: 8 additions & 0 deletions docs/_includes/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ This is their contract:
* If retrieval is successful, they return the value on stdout with exit code 0.
* If an error occurs, they return an error message on stderr and a non-0 exit code.

When providers support stream mode and a call is made without arguments, Summon continuously sends
secret identifiers to the provider's standard input, and the provider sends the secret values to its
standard output until all secrets are retrieved. The returned values are Base64 encoded to avoid issues with
special characters.

Summon always tries to use stream mode. However, when this mode is not supported Summon falls back
to the legacy mode where each secret is retrieved using its own process.

The default path for providers is `/usr/local/lib/summon/`. If one provider is in that path,
summon will use it. If multiple providers are in the path, you can specify which one to use
with the `--provider` flag or the environment variable `SUMMON_PROVIDER`. If your providers are
Expand Down

0 comments on commit 6fbab05

Please sign in to comment.