vault/website/content/api-docs/secret
Alexander Scheel f079b7b0a4
Add TLS-ALPN-01 Challenge Type to ACME (#20943)
* Add ACME TLS-ALPN-01 Challenge validator to PKI

This adds support for verifying the last missing challenge type,
TLS-ALPN-01 challenges, using Go's TLS library. We wish to add this as
many servers (such as Caddy) support transparently renewing certificates
via this protocol, without influencing the contents of sites served.

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

* Enable suggesting, validating tls-alpn-01 in PKI

Notably, while RFC 8737 is somewhat vague about what identifier types
can be validated with this protocol, it does restrict SANs to be only
DNSSans; from this, we can infer that it is not applicable for IP
typed identifiers. Additionally, since this must resolve to a specific
domain name, we cannot provision it for wildcard identifiers either.

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

* Fix test expectations to allow ALPN challenges

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

* Add tls-alpn-01 as a supported challenge to docs

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

* Add test for tls-alpn-01 challenge verifier

This hacks the challenge engine to allow non-standard (non-443) ports,
letting us use a local server listener with custom implementation.

In addition to the standard test cases, we run:

 - A test with a longer chain (bad),
 - A test without a DNSSan (bad),
 - A test with a bad DNSSan (bad),
 - A test with some other SANs (bad),
 - A test without a CN (good),
 - A test without any leaf (bad), and
 - A test without the extension (bad).

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

* Add changelog entry

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

* Update builtin/logical/pki/acme_challenges.go

Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>

---------

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Co-authored-by: Kit Haines <khaines@mit.edu>
2023-06-07 16:34:00 +00:00
..
databases website: fix typo in postgresql.mdx (#20847) 2023-05-30 19:28:20 +01:00
identity Change headings to h2 (#19402) 2023-03-07 15:48:51 -08:00
key-management docs: Migrate link formats (#18696) 2023-01-25 16:12:15 -08:00
kv Update the HTTP verb for consistency (#20056) 2023-04-11 13:35:06 -07:00
ad.mdx sdk/ldaputil: add connection_timeout configurable (#20144) 2023-04-13 12:43:28 -04:00
alicloud.mdx docs: Migrate link formats (#18696) 2023-01-25 16:12:15 -08:00
aws.mdx Update aws static credential fields to match dynamic credential fields (#21017) 2023-06-06 14:30:39 -05:00
azure.mdx secrets/azure: changes permission recommendation to be minimally permissive (#18937) 2023-02-01 11:07:57 -08:00
cassandra.mdx docs: Migrate link formats (#18696) 2023-01-25 16:12:15 -08:00
consul.mdx docs: Migrate link formats (#18696) 2023-01-25 16:12:15 -08:00
cubbyhole.mdx docs: Migrate link formats (#18696) 2023-01-25 16:12:15 -08:00
gcp.mdx docs: Migrate link formats (#18696) 2023-01-25 16:12:15 -08:00
gcpkms.mdx docs: Migrate link formats (#18696) 2023-01-25 16:12:15 -08:00
index.mdx feat(website): migrates nav data format and updates docs pages (#11242) 2021-04-06 13:49:04 -04:00
kmip.mdx docs: Migrate link formats (#18696) 2023-01-25 16:12:15 -08:00
kubernetes.mdx update API docs for kubernetes secrets engine (#20726) 2023-05-26 07:38:22 -07:00
ldap.mdx sdk/ldaputil: add connection_timeout configurable (#20144) 2023-04-13 12:43:28 -04:00
mongodbatlas.mdx add missing mongodb atlas fields to the docs (#20207) 2023-04-17 14:10:07 -07:00
nomad.mdx docs: Migrate link formats (#18696) 2023-01-25 16:12:15 -08:00
pki.mdx Add TLS-ALPN-01 Challenge Type to ACME (#20943) 2023-06-07 16:34:00 +00:00
rabbitmq.mdx docs: Migrate link formats (#18696) 2023-01-25 16:12:15 -08:00
ssh.mdx Update Create Role heading to Create/Update Role (#20000) 2023-04-06 11:42:22 +01:00
terraform.mdx docs: Migrate link formats (#18696) 2023-01-25 16:12:15 -08:00
totp.mdx docs: Migrate link formats (#18696) 2023-01-25 16:12:15 -08:00
transform.mdx Document the 'convergent' tokenization transform option (#19249) 2023-02-17 13:15:40 -06:00
transit.mdx Transit BYOK export capabilities (#20736) 2023-05-30 21:42:41 +00:00