Commit bb569cb
committed
rm unauthenticated, rm impossible flag combinations, better err msgs
- The unauthenticated mode no longer exists. The unauthenticated mode caused a
lot of confusion as it was randomly triggered when missing some flags. Now, if
you don't provide the required flags, the command will fail with a helpful
error showing you what you missed.
- I have removed an impossible combination (that did not work): you can
no longer use `--private-key-path` along with `--credentials-path`.
Previously, `--private-key-path` would be ignored if
`--credentials-path` was provided. Now, the two options are mutually
exclusive and a helpful message is shown when trying to use both.
- The field `uploader_id` in the configuration file is deprecated. Setting this
field will no longer do anything. A warning is now shown when using this
field. The reason this field was deprecated is that it was never used by the
Venafi Cloud API. Behind the scenes, the uploader_id is arbitrarily set to
`no` so that the API doesn't complain.
- The --private-key-path flag now defaults to the empty string. Previously, it
defaulted to `/etc/venafi/agent/key/privatekey.pem`. This location wasn't used
by any of our deployment options, and was confusing to users trying to use
`--client-id`. A helpful message is now shown when trying to run `--client-id`
without `--private-key-path`.
- The `--period` flag was required even though the `period` field in the config
was set. You can now set the period using the `period` field in the config
file without having to also pass `--period` or `-p`. Note that the `--period`
flag takes precedence over the config file.1 parent 2b90ff5 commit bb569cb
File tree
20 files changed
+1280
-903
lines changed- cmd
- pkg
- agent
- client
- datagatherer/k8s
- echo
- permissions
- testutil
20 files changed
+1280
-903
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments