vault/website/content/api-docs
Alexander Scheel 00c3e8f8f7
Allow specifying multiple allowed SSH key lengths (#13991)
* Allow specifying multiple allowed SSH key lengths

In the ssh secrets engine, only a single allowed key length was allowed
for each algorithm type. However, many algorithms have multiple safe
values (such as RSA and ECDSA); allowing a single role to have multiple
values for a single algorithm is thus helpful.

On creation or update, roles can now specify multiple types using a list
or comma separated string of allowed values:

    allowed_user_key_lengths: map[string][]int{"rsa": []int{2048, 4096}}

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add changelog entry

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Break out ssh upgrade logic into separate function

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Update parseutil for optional lists of integers

    go get -u github.com/hashicorp/go-secure-stdlib/parseutil
    go mod tidy

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Simplify parse logic using new parseutil

The newly introduced parseutil.ParseIntSlice handles the more
complicated optional int-like slice logic for us.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2022-02-17 15:36:56 -05:00
..
auth Use secret_id_bound_cidrs instead of bound_cidr_list in approle docs (#12658) 2022-02-09 09:34:13 -08:00
secret Allow specifying multiple allowed SSH key lengths (#13991) 2022-02-17 15:36:56 -05:00
system Add sys/version-history endpoint and associated command (#13766) 2022-02-14 15:26:57 -05:00
index.mdx Add docs about path param restrictions (#13413) 2021-12-13 17:02:39 -08:00
libraries.mdx Adding dotnet example app to docs (#13782) 2022-02-04 12:28:43 -08:00
relatedtools.mdx Update repository links to point to main (#14112) 2022-02-17 14:30:56 -05:00