open-vault/sdk
Alexander Scheel 412603befd
Fix RevocationSigAlg provisioning in GCP (#17449)
* Fix RevocationSigAlg provisioning in GCP

GCP restricts keys to a certain type of signature, including hash
algorithm, so we must provision our RevocationSigAlg from the root
itself unconditionally in order for GCP to work.

This does change the default, but only for newly created certificates.

Additionally, we clarify that CRL building is not fatal to the import
process.

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

* Add inverse mapping for SignatureAlgorithm

By default we'd use .String() on x509.SignatureAlgorithm, but this
doesn't round-trip. Switch to a custom map that is round-trippable
and matches the constant name as there is no other way to get this info
presently.

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

* Add test to ensure root creation sets rev_sig_alg

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

* Test round-tripping of SigAlgoNames, InvSigAlgoNames

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

* Fix failing Default Update test

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

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2022-10-06 17:50:49 -04:00
..
database Check if plugin version matches running version (#17182) 2022-09-21 12:25:04 -07:00
framework Update missing go-kms-wrapping v2 dep and address some ENT->OSS drift (#17178) 2022-09-19 10:23:40 -04:00
helper Fix RevocationSigAlg provisioning in GCP (#17449) 2022-10-06 17:50:49 -04:00
logical Return errInvalidCredentials when wrong credentials is provided for existent users (#17104) 2022-09-27 16:49:14 -07:00
physical VAULT-6938 Remove license from being cache exempt (#17265) 2022-09-26 10:26:07 -04:00
plugin Plugins: Tighten requirements for multiplexing (#17403) 2022-10-05 09:29:29 +01:00
queue
version Bump version in SDK to 1.13 for next major release (#17233) 2022-09-20 15:40:06 -04:00
README.md
go.mod Update tlsutil to v0.1.2 for ecdsa algo naming (#17282) 2022-09-23 08:28:40 -04:00
go.sum Update tlsutil to v0.1.2 for ecdsa algo naming (#17282) 2022-09-23 08:28:40 -04:00

README.md

Vault SDK libs

This package provides the sdk package which contains code useful for developing Vault plugins.

Although we try not to break functionality, we reserve the right to reorganize the code at will and may occasionally cause breaks if they are warranted. As such we expect the tag of this module will stay less than v1.0.0.

For any major changes we will try to give advance notice in the CHANGES section of Vault's CHANGELOG.md.