File tree Expand file tree Collapse file tree 6 files changed +47
-3
lines changed
spring-vault-core/src/main/java/org/springframework/vault/core
src/main/antora/modules/ROOT/pages/vault Expand file tree Collapse file tree 6 files changed +47
-3
lines changed Original file line number Diff line number Diff line change 2323import reactor .core .publisher .Mono ;
2424
2525import org .springframework .vault .VaultException ;
26+ import org .springframework .vault .client .VaultEndpoint ;
2627import org .springframework .vault .support .VaultResponse ;
2728import org .springframework .vault .support .VaultResponseSupport ;
2829import org .springframework .web .reactive .function .client .WebClient ;
3940 * {@link ReactiveVaultOperations} allows execution of callback methods. Callbacks can
4041 * execute requests within a {@link #doWithSession(Function) session context} and the
4142 * {@link #doWithVault(Function) without a session}.
43+ * <p>
44+ * Paths used in this interface (and interfaces accessible from here) are considered
45+ * relative to the {@link VaultEndpoint}. Paths that are fully-qualified URI's can be used
46+ * to access Vault cluster members in an authenticated context. To prevent unwanted full
47+ * URI access, make sure to sanitize paths before passing them to this interface.
4248 *
4349 * @author Mark Paluch
4450 * @author James Luke
Original file line number Diff line number Diff line change 5454
5555/**
5656 * This class encapsulates main Vault interaction. {@link ReactiveVaultTemplate} will log
57- * into Vault on initialization and use the token throughout the whole lifetime.
57+ * into Vault on initialization and use the token throughout the whole lifetime. This is
58+ * the main entry point to interact with Vault in an authenticated and unauthenticated
59+ * context.
60+ * <p>
61+ * {@link ReactiveVaultTemplate} allows execution of callback methods. Callbacks can
62+ * execute requests within a {@link #doWithSession(Function) session context} and the
63+ * {@link #doWithVault(Function) without a session}.
64+ * <p>
65+ * Paths used in this interface (and interfaces accessible from here) are considered
66+ * relative to the {@link VaultEndpoint}. Paths that are fully-qualified URI's can be used
67+ * to access Vault cluster members in an authenticated context. To prevent unwanted full
68+ * URI access, make sure to sanitize paths before passing them to this interface.
5869 *
5970 * @author Mark Paluch
6071 * @author Raoof Mohammed
Original file line number Diff line number Diff line change 2020import org .jspecify .annotations .Nullable ;
2121
2222import org .springframework .vault .VaultException ;
23+ import org .springframework .vault .client .VaultEndpoint ;
2324import org .springframework .vault .core .VaultKeyValueOperationsSupport .KeyValueBackend ;
2425import org .springframework .vault .support .VaultResponse ;
2526import org .springframework .vault .support .VaultResponseSupport ;
3334 * {@link VaultOperations} allows execution of callback methods. Callbacks can execute
3435 * requests within a {@link #doWithSession(RestOperationsCallback) session context} and
3536 * the {@link #doWithVault(RestOperationsCallback) without a session}.
37+ * <p>
38+ * Paths used in this interface (and interfaces accessible from here) are considered
39+ * relative to the {@link VaultEndpoint}. Paths that are fully-qualified URI's can be used
40+ * to access Vault cluster members in an authenticated context. To prevent unwanted full
41+ * URI access, make sure to sanitize paths before passing them to this interface.
3642 *
3743 * @author Mark Paluch
3844 * @author Lauren Voswinkel
Original file line number Diff line number Diff line change 4747import org .springframework .web .client .RestTemplate ;
4848
4949/**
50- * This class encapsulates main Vault interaction. {@link VaultTemplate} will log into
51- * Vault on initialization and use the token throughout the whole lifetime.
50+ * This class encapsulates main Vault interaction. {@code VaultTemplate} will log into
51+ * Vault on initialization and use the token throughout the whole lifetime. This is the
52+ * main entry point to interact with Vault in an authenticated and unauthenticated
53+ * context.
54+ * <p>
55+ * {@code VaultTemplate} allows execution of callback methods. Callbacks can execute
56+ * requests within a {@link #doWithSession(RestOperationsCallback) session context} and
57+ * the {@link #doWithVault(RestOperationsCallback) without a session}.
58+ * <p>
59+ * Paths used in this interface (and interfaces accessible from here) are considered
60+ * relative to the {@link VaultEndpoint}. Paths that are fully-qualified URI's can be used
61+ * to access Vault cluster members in an authenticated context. To prevent unwanted full
62+ * URI access, make sure to sanitize paths before passing them to this interface.
5263 *
5364 * @author Mark Paluch
5465 * @see SessionManager
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ the use of the Vault API and `VaultOperations`. A major difference in between
2323the two APIs is that `VaultOperations` can be passed domain objects instead of
2424JSON Key-Value pairs.
2525
26+ Paths used in `VaultTemplate` (and interfaces accessible from there) are considered
27+ relative to the `VaultEndpoint`. Paths that are fully-qualified URI's can be used
28+ to access Vault cluster members in an authenticated context. To prevent unwanted
29+ full URI access, make sure to sanitize paths before passing them to `VaultTemplate`.
30+
2631NOTE: The preferred way to reference the operations on javadoc:org.springframework.vault.core.VaultTemplate[] instance
2732is via its interface javadoc:org.springframework.vault.core.VaultOperations[].
2833
Original file line number Diff line number Diff line change @@ -47,6 +47,11 @@ the use of the Vault API and javadoc:org.springframework.vault.core.ReactiveVaul
4747the two APIs is that javadoc:org.springframework.vault.core.ReactiveVaultOperations[] can be passed domain objects instead of
4848JSON Key-Value pairs.
4949
50+ Paths used in `ReactiveVaultTemplate` (and interfaces accessible from there) are considered
51+ relative to the `VaultEndpoint`. Paths that are fully-qualified URI's can be used
52+ to access Vault cluster members in an authenticated context. To prevent unwanted
53+ full URI access, make sure to sanitize paths before passing them to `ReactiveVaultTemplate`.
54+
5055NOTE: The preferred way to reference the operations on javadoc:org.springframework.vault.core.ReactiveVaultTemplate[] instance
5156is via its interface javadoc:org.springframework.vault.core.ReactiveVaultOperations[].
5257
You can’t perform that action at this time.
0 commit comments