25 Commits
Author SHA1 Message Date
Damian DebkowskiandHugo fcfe267a3f refactor: switch from awsutil to awsutilv2 (#34)
* fix(storage): Storage Assume Role Support

This commit introduces fixes to enable operators to use AWS dynamic
credentials on the storage side of this plugin, namely validation,
improved credential lifecycle management to allow for storage buckets to
be updated from static to dynamic credentials and vice versa, and a new
way to determine credential types.

It also introduces new tests for dynamic credential usage for the
various functions.

* fix(storage): Static rotated creds being deleted on plugin err

On Storage Bucket update, when we determine if the credentials are to be
updated to new ones, we call `credState.ReplaceCreds`.

This call, if the old credentials were managed by us (rotated at create
time), will delete the old credentials and set the new ones onto
credState.

We called this function without validating if the incoming credentials
are valid. This could get the bucket in a state where where, while we'd
return an update error if the incoming credentials weren't working with
S3 (err in the dry run process that happens at the end of the update),
we'd also silently delete the old credentials the bucket used, rendering
the bucket completely broken.

---------

Co-authored-by: Hugo <hugoamvieira@users.noreply.github.com>
2023-09-22 12:26:08 -07:00
Damian Debkowski 07f015be28 feat: assume role provider credentials (#28)
* feat: assume role provider credentials

This commit updates the awsutil dependency to its latest version, which
supports the capability of using dynamic credentials. The storage service
was refactored to make static credentials optional. The credentials pkg
was refactored to support several attribute fields used for the assume
role provider. The host service still enforces the use of static
credentials.
2023-07-18 16:33:24 -07:00
Damian Debkowski 334732967d chore: host plugin import aws-sdk-go-v2 (#27) 2023-07-04 11:03:24 -07:00
Louis Ruch 62e885a802 chore: Rename module to drop host element (#24) 2023-06-02 08:55:14 -07:00
Louis Ruch 209711f688 chore: Update Boundary SDK tag 2023-06-01 08:36:25 -07:00
Louis Ruch fbc51dd7d7 chore(deps): Update go.mod of Boundary SDK 2023-05-31 08:27:16 -04:00
Louis Ruch d5c9378340 feat(ci): Update CI to run valid go version 2023-05-30 20:53:47 -04:00
Damian Debkowski 010b9df595 feat(plugin): add support for storage service 2023-05-30 15:26:19 -04:00
Hugo c235f0a72f feat(plugin): Support extracting AWS instance name (#21) 2023-04-17 11:00:12 +01:00
Jeff Mitchell 7256300997 Update some deps and fix tests; add set attr normalization (#16) 2022-08-19 00:42:19 -04:00
Jeff Mitchell 756bc0960a Update SDK 2021-11-12 19:48:17 -05:00
Jeff Mitchell a0de5b0c55 Update SDK dep 2021-11-10 15:12:44 -05:00
Jeff Mitchell d33fb1f84c Update deps 2021-11-10 15:08:19 -05:00
Todd ed51fa0df1 Update boundary sdk mod version. (#3) 2021-11-10 11:05:34 -07:00
Jeff Mitchell 1de471d9c7 Update filters to new, http.proto-compatible format (#2)
This updates the filtering logic to use the new format that doesn't
clash with http.proto rules for attributes used by grpc-gateway.
2021-11-03 21:21:27 -04:00
Todd bea322df68 Update boundary/sdk dependency for recent breaking proto change. (#1) 2021-10-29 13:56:22 -07:00
Jeff Mitchell d9151151fa Update SDK dep 2021-10-20 13:41:59 -04:00
Chris Marchesi a7401ef2d5 More unit testing and addins of mocks from awsutil 2021-10-05 16:36:53 -07:00
Chris Marchesi 6345faccf5 fix project paths 2021-09-28 10:56:09 -07:00
Chris Marchesi 8db12c2775 update to latest SDK, add set ID reporting 2021-09-27 15:30:37 -07:00
Chris Marchesi b61d0ba244 more WIP: lots of fun testing 2021-09-22 17:00:37 -07:00
Chris Marchesi 01855d28f7 fix test TF infra, add TF manager for testing 2021-09-21 15:04:49 -07:00
Chris Marchesi efa2f78a73 more WIP 2021-09-17 12:32:08 -07:00
Chris Marchesi 769daf7398 WIP 2021-09-16 17:54:32 -07:00
Chris Marchesi 1e6761885e initial commit 2021-09-15 17:06:09 -07:00