forked from vmware-tanzu/velero-plugin-for-aws
-
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.
Use credentials file passed through config (vmware-tanzu#69)
* Use credentials file passed through config Add a new supported key to the config which allows the path to a credentials file to be passed through to the ObjectStore plugin. If that key is set in the config, use that file as the credentials file for the AWS client. This can be tested by adding a new key to the `cloud-credentials` secret and adding the key value pair `credentialsFile=/credentials/<key_name>`. Signed-off-by: Bridget McErlean <bmcerlean@vmware.com> * Add function to create session options We have some repeated logic for creating session option. This introduces a new function to handle the creation of those session options. Signed-off-by: Bridget McErlean <bmcerlean@vmware.com> * Add documentation for per-BSL credentials Signed-off-by: Bridget McErlean <bmcerlean@vmware.com> * Address code review and add changelog Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>
- Loading branch information
1 parent
2131b87
commit 865a2d5
Showing
3 changed files
with
93 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add support for the new `credentialsFile` config key which enables per-BSL credentials. If set, the plugin will use this path as the credentials file for authentication rather than the credentials file path in the environment. |
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