Change behavior of -token and -password to support env/file only (#2327)

* Revert "Remove `-token` flag (#2303)"

This reverts commit 65cff995d7.

* Change behavior of -token

* Add use of MustParsePath

* Update changelog

* Use errors.Is
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2022-08-05 16:08:48 -04:00
1 parent ddb7ec7b49
commit fe2ee7ef4a
9 files changed
+101 -24

No files matched your search

+11 -4
View File
@@ -37,10 +37,17 @@ Canonical reference for changes, improvements, and bugfixes for Boundary.
* Credential stores: Static-type credential stores/credentials now use typed
prefixes for any newly-created resources. Existing resources will not be
affected. ([PR](https://github.com/hashicorp/boundary/pull/2256))
* Removal of `-token` flag from CLI: Passing a token this way can reveal the
token to any user or service that can look at process information. CLI users
can use the keyring integration or `BOUNDARY_TOKEN` env var.
([PR](https://github.com/hashicorp/boundary/pull/2303))
* Change of behavior on `-token` flag in CLI: Passing a token this way can
reveal the token to any user or service that can look at process information.
This flag must now reference a file on disk or an env var. Direct usage of the
`BOUNDARY_TOKEN` env var is also deprecated as it can show up in environment
information; the `env://` format now supported by the `-token` flag causes the
Boundary process to read it instead of the shell so is safer.
([PR](https://github.com/hashicorp/boundary/pull/2327))
* Change of behavior on `-password` flag in CLI: The same change made above for
`-token` has also been applied to `-password` or, for supporting resource
types, `-current-password` and `-new-password`.
([PR](https://github.com/hashicorp/boundary/pull/2327))
## 0.9.1 (2022/07/06)