Jeff Mitchell
7eb29261b2
Update to go-kms-wrapping version 2, and plugin-based KMS ( #1901 )
2022-03-16 17:04:07 -04:00
Jeff Mitchell
5743580ca5
Update authenticate command/subcommands help text ( #1835 )
...
* Make it clear in the subcommands that the given strings are examples
* Add an OIDC example to show that there are different types
* Remove password flag from examples
2022-01-31 11:50:45 -05:00
Jeff Mitchell
b533e12c1a
Update password import
2021-07-14 17:38:52 -07:00
Jeff Mitchell
2cbcf9a563
Update usage of shared-secure-libs ( #1393 )
2021-07-12 21:06:22 -04:00
denniskniep
5ba8377106
Remove text in oidc command on json format ( #1213 )
...
Fixes #1193
Fixes that the openid connect authenticate command formatted as json returns
disturbing text. Therefore it can not be piped and parsed by another tool
2021-05-10 13:12:11 -04:00
Jeff Mitchell
4690225c1e
Update delete action behavior and JSON format output ( #1155 )
...
This PR changes delete behavior:
* On success, a 204 is returned rather than a 200 with an empty JSON object
* The CLI now passes through the 404 error if encountered instead of swallowing it
It also updates formatting for JSON to use the response body, which means that the item (or items) in the JSON format are actually the format across the wire, instead of being reinterpreted by unmarshaling into the Go SDK and then remarshaling.
2021-04-26 20:38:55 -04:00
Jeff Mitchell
90b30bad25
Use 202 for token polling endpoint instead of 204 ( #1103 )
2021-04-12 14:57:14 -04:00
dd0f34bc35
Add new OIDC auth method. ( #1090 )
...
Co-authored-by: Todd Knight <T.Alan.Knight@gmail.com >
Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com >
Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com >
2021-04-08 20:54:32 -04:00
Jeff Mitchell
6605b4c9f8
Revamp authenticate ( #1025 )
2021-03-24 16:07:43 -04:00
Jeff Mitchell
9649a19d23
Update CLI error codes to be consistent with connect ( #976 )
2021-03-04 20:05:17 -05:00
Jeff Mitchell
72aa110f72
CLI JSON updates ( #962 )
...
See Changelog for details.
2021-02-25 12:43:17 -05:00
Michael Gaffney and Jeff Mitchell
94cb79bbdd
See how Boundary would look with gofumpt applied ( #853 )
...
* See how Boundary would look with https://github.com/mvdan/gofumpt applied
Results of running `gofumpt -w -s .`
* Update tools file and Makefile for gofumpt
Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com >
2021-01-07 10:02:32 -05:00
Jeff Mitchell
5b5602969f
Update go-keyring to use forked version ( #846 )
...
This may help with #830 .
2021-01-04 21:05:42 -05:00
Jeff Mitchell
09b865ab28
Add pass cred storage support ( #731 )
...
* Add `pass` cred storage support
Make it the default on non-Windows/macOS
Document the token storage behavior
2020-10-21 09:00:17 -04:00
Jeff Mitchell
f454fa9ef2
Don't return error code 1 if saving the value to the keyring ( #668 )
2020-10-13 17:13:31 -04:00
Jeff Mitchell
603b0582d7
Fix CLI help output and make more consistent ( #605 )
2020-10-09 20:26:48 -04:00
Todd Knight
6c6fb7a4d0
Format errors better for CLI ( #552 )
...
* Start making errors easier to read for Table based CLI UI.
* Add TODO about reporting "update_mask" related errors.
2020-10-06 14:08:49 -07:00
Jeff Mitchell
f8a2100603
Add various env vars to CLI ( #528 )
...
* Add auth method ID env var
* Add env var for host catalogs
2020-10-02 19:20:30 -04:00
Jeff Mitchell
6ddfe407a3
Update allowed formats of ACL strings ( #508 )
2020-10-01 01:49:20 -04:00
Jeff Mitchell
4854f2c35f
Add boundary connect http ( #516 )
2020-10-01 00:27:13 -04:00
Jeff Mitchell
cf3fa4522d
Swap base58 libraries ( #472 )
...
* Swap base58 libraries
This doesn't reduce binary size but it removes a metric ton of
dependencies.
2020-09-26 14:01:49 -04:00
Todd Knight
fd0da998e8
SDK error revamp ( #432 )
...
SDK methods now return 1 error. To differentiate between Client errors and Server errors I've also implemented the AsServerError function which returns an *api.Error if it is an error originating from the remote server or nil otherwise.
2020-09-24 14:34:58 -07:00
Jeff Mitchell
03436a73de
Update CLI output functions to show scope info and cleanup ( #416 )
2020-09-23 03:01:39 -04:00
Christian Frichot
475c6cdebe
Fix updated help text for the authenticate base command so it aligns with the password subcommand ( #401 )
2020-09-22 07:51:14 -04:00
Christian Frichot
9e6c016223
Add JSON formatted output for authenticate password cli command ( #402 )
2020-09-22 07:50:40 -04:00
Jeff Mitchell
97985883df
Fix token storage
2020-09-15 02:07:10 -04:00
Jeff Mitchell
a00ee7a948
Add Result types to Go SDK and properly populate body/map fields ( #358 )
2020-09-15 01:08:21 -04:00
Jeff Mitchell
2914b4c14c
Use base58 for a few more user-facing values ( #356 )
2020-09-12 21:43:08 -04:00
Todd Knight
c3ecea172d
Generate new version of SDK resources and Add Tests ( #331 )
2020-09-08 16:27:51 -04:00
Jeff Mitchell
1f065316ee
Initial ( #313 )
2020-08-28 01:28:26 -04:00
Jeff Mitchell
17ecb6f2ce
Separate accounts/host catalogs/host sets into their own packages ( #311 )
2020-08-27 20:43:33 -04:00
Jeff Mitchell
8f579c75c3
paum -> ampw ( #303 )
2020-08-25 00:21:08 -04:00
Jeff Mitchell
74544f6324
Encrypt tokens on the way out and decrypt on the way in ( #302 )
...
* Encrypt tokens on the way out and decrypt on the way in
This isn't a security feature related to tokens specifically; it's so
that we can discard cryptographically bad tokens before we ever hit the
DB. This way we can't pass through a DDoS to the database due to
fetching obviously invalid token values.
I'm using base58 to encode the resulting value as there aren't great
base62 options, and allowing base64 / and + values can hamper usability
by creating copying/highlighting breaks.
2020-08-25 00:20:50 -04:00
Jeff Mitchell
adfc5681be
Auth methods CLI ( #277 )
2020-08-18 17:46:34 -04:00
Jeff Mitchell
d3a1cd949b
Update password auth method flags to fit current standards
2020-08-13 18:32:58 -04:00
Jeff Mitchell
e89e9d1349
Add groups CLI command ( #266 )
2020-08-13 17:35:55 -04:00
Jeff Mitchell
6661117d4c
The name. The name. The name!
2020-08-10 17:15:02 -04:00
Jeff Mitchell
f07bb9dae6
Fix breakage after change to template from previous PR
2020-08-07 15:18:44 -04:00
Jeff Mitchell
908a299ea3
Convert SDK to the new options API ( #238 )
2020-08-07 12:55:02 -04:00
Jeff Mitchell
2bbc1163c4
Save the entire token, not just the ID ( #211 )
...
This allows us to use the token's scope to set the default scope for an
action in the client instead of relying on env vars.
2020-07-22 15:02:58 -04:00
Jeff Mitchell
388a13b10d
Convert scopes to the new paradigm ( #206 )
2020-07-22 00:14:28 -04:00
Todd Knight
28dbcd84bd
Authenticate Handler API and SDK, and much more ( #183 )
2020-07-14 17:32:47 -04:00