Danielle Miu
009d2cd570
pull and use new ErrorDetail protodef
2023-07-05 13:09:47 -04:00
Damian Debkowski
7bf9fe2ecf
chore: fix credential rotation reference in readme ( #25 )
2023-06-05 09:53:19 -07:00
hashicorp-copywrite[bot]
c6687840d5
[COMPLIANCE] Add Copyright and License Headers ( #26 )
...
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2023-06-05 09:52:48 -07:00
Louis Ruch
62e885a802
chore: Rename module to drop host element ( #24 )
2023-06-02 08:55:14 -07:00
Damian Debkowski
010b9df595
feat(plugin): add support for storage service
2023-05-30 15:26:19 -04:00
Damian Debkowski and Michael Li
46c53fb94a
refactor: organize plugin to support multiple services ( #1 )
...
Co-authored-by: Michael Li <michael.li@hashicorp.com >
2023-04-30 23:30:08 -07:00
Hugo
c235f0a72f
feat(plugin): Support extracting AWS instance name ( #21 )
2023-04-17 11:00:12 +01:00
hashicorp-copywrite[bot]
cef41e852e
[COMPLIANCE] Add Copyright and License Headers
2023-01-03 22:03:42 +00:00
Jeff Mitchell
54e680e942
Add region into IAM clients as well as EC2 clients ( #18 )
2022-09-02 14:35:34 -04:00
Jeff Mitchell
edc129991f
Update option handling in EC2Client and add custom HTTP client ( #17 )
2022-09-01 15:25:14 -04:00
Jeff Mitchell
7256300997
Update some deps and fix tests; add set attr normalization ( #16 )
2022-08-19 00:42:19 -04:00
Haotian
5ebf2fa5d0
refactor(errors): update plugin errors to include error codes
2022-03-10 11:00:57 -08:00
Chris Marchesi
7a07ac42c0
add default address/DNS check/add for interface, not just whole instance
2021-12-06 11:40:44 -08:00
Chris Marchesi
13469e3594
plugin: add DNS names
...
This adds DNS names to the output for host queries.
Hosts are discovered in private, then public order, first at the
top-level, and then through attached network interfaces. This mirrors
the discovery order of IP addresses.
2021-12-03 13:24:48 -08:00
Chris Marchesi
3e2f459f04
Remove unknown field assertion from awsCatalogPersistedStateFromProto
2021-11-22 16:16:24 -08:00
Chris Marchesi
f22e129d92
Switch attribute getters to use GetFields/AsInterface from AsMap
2021-11-22 16:11:33 -08:00
Chris Marchesi
5777870592
e2e ListHosts test was working off multiple sets with a single tag
2021-11-18 11:18:32 -08:00
Chris Marchesi
07270a7457
plugin: add unknown attr checks, fix E2E test
...
This adds checks for unknown attributes through the entire plugin
lifecycle for all attributes, secrets, and persisted state.
It also fixes the E2E test which seems to have drifted.
2021-11-16 17:29:17 -08:00
Chris Marchesi
38bcd34baf
plugin: Remove TODO from E2E test covering rotated -> not rotated
...
...when no new credentials are supplied. This was initially not covered
when the E2E tests were written but was added later once we the mocks
necessary to do unit testing to get error coverage.
2021-11-15 15:26:15 -08:00
Jeff Mitchell
1c7bacafa7
Handle the case where an incoming filter is a string ( #4 )
...
Ideally we'd ensure that an incoming filter is a string, but some
clients, such as the CLI, don't have a good way to require this without
it being very onerous to the user.
Eventually we can handle this via allowing the plugin to declare a
schema and perform type validation in the handler, but for now, work
around this within the plugin.
2021-11-12 19:47:46 -05:00
Todd Knight
563a2b9931
Don't return nil, nil but instead return an empty response.
2021-11-10 15:41:23 -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
Chris Marchesi
9099292d03
Don't ignore non-running instances, rely on filter instead
...
We now add the instance-state = ["running"] filter to all queries if
instance-state is not explicitly defined beforehand. This should ensure
that all queries return running instances beforehand (saving some
post-processing later too).
As such, I'm removing an artifact of the old code where we were not
doing this, which was basically to skip all running instances.
Additionally, this will allow an operator to include non-running
instances in a filter should this be desired for whatever reason.
2021-10-07 14:15:32 -07:00
Chris Marchesi
9a5e4016fa
most of the remaining unit testing added
2021-10-07 12:40:55 -07:00
Chris Marchesi
00907f72cc
more error coverage
2021-10-06 16:53:11 -07:00
Chris Marchesi
6d9338d8a0
more error test coverage
2021-10-06 12:47:05 -07:00
Chris Marchesi
a7401ef2d5
More unit testing and addins of mocks from awsutil
2021-10-05 16:36:53 -07:00
Chris Marchesi
f7c5709046
WIP - more unit testing
2021-09-30 17:05:30 -07:00
Chris Marchesi
6345faccf5
fix project paths
2021-09-28 10:56:09 -07:00
Chris Marchesi
d98e41f91c
adding some coverage for some error cases
2021-09-27 16:47:51 -07:00
Chris Marchesi
8db12c2775
update to latest SDK, add set ID reporting
2021-09-27 15:30:37 -07:00
Chris Marchesi
08fac13f71
E2E testing complete
2021-09-24 12:47:57 -07:00
Chris Marchesi
6598a2d68a
more wip, adding a bunch more testing stuff
2021-09-23 17:24:54 -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
7fe7b6b2c3
initial test terraform (wip)
2021-09-20 16:52:15 -07:00
Chris Marchesi
84353f46b9
more WIP, got things fixed to the point where it builds
2021-09-20 11:13:59 -07:00
Chris Marchesi
544c8fce5b
even more WIP
2021-09-17 16:56:01 -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