vault/sdk
Vault Automation a23dc5c0e0
[VAULT-43618] sdk: migrate from github.com/docker/docker to github.com/moby/moby
Resolve GHSA-x744-4wpc-v9h2 and GHSA-pxq6-2prw-chj9 in `vault` by replacing
`github.com/docker/docker` with `github.com/moby/moby/client` @ `v0.3.0` and
`github.com/moby/moby/api` @ `v1.54.0`. This is necessary as `docker/docker`
 is no longer maintained and the fixes are not available in it.

Resolve GO-2026-4518, GHSA-x6gf-mpr2-68h6 and GHSA-jqcq-xjh3-6g23 by
upgrading to github.com/jackc/pgx/v5. This is necessary as v4 is not
longer maitained.

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2026-04-02 13:58:05 -04:00
..
database [VAULT-43618] sdk: migrate from github.com/docker/docker to github.com/moby/moby 2026-04-02 13:58:05 -04:00
framework Add the ability for a plugin to specify extra fields for auditing purposes (#11018) (#12167) 2026-02-04 15:41:54 +00:00
helper [VAULT-43618] sdk: migrate from github.com/docker/docker to github.com/moby/moby 2026-04-02 13:58:05 -04:00
logical VAULT-42443 Update alias API for external JWT entity binding (#13053) (#13384) 2026-03-25 12:21:59 -04:00
physical VAULT-42598 add resource cleanup to SCIM client delete (#12489) (#12826) 2026-03-10 11:52:50 -03:00
plugin Rotation Manager sdk helper tweaks (#12441) (#12810) 2026-03-07 16:30:12 -06:00
queue license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
rotation Add test case and add some comments (#12811) (#12850) 2026-03-09 19:23:48 +00:00
.copywrite.hcl [DO NOT MERGE UNTIL EOY] update year in LICENSE and copywrite files (#24368) 2024-01-02 13:22:15 -08:00
go.mod [VAULT-43618] sdk: migrate from github.com/docker/docker to github.com/moby/moby 2026-04-02 13:58:05 -04:00
go.sum [VAULT-43618] sdk: migrate from github.com/docker/docker to github.com/moby/moby 2026-04-02 13:58:05 -04:00
LICENSE license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
README.md Introduce hashicorp/go-metrics compatibility to the SDK module (#29358) 2025-04-10 11:20:49 -05:00

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.

Metrics Emission and Compatibility

This module can emit metrics using either github.com/armon/go-metrics or github.com/hashicorp/go-metrics. Choosing between the libraries is controlled via build tags.

Build Tags

  • armonmetrics - Using this tag will cause metrics to be routed to armon/go-metrics
  • hashicorpmetrics - Using this tag will cause all metrics to be routed to hashicorp/go-metrics

If no build tag is specified, the default behavior is to use armon/go-metrics.

Deprecating armon/go-metrics

Emitting metrics to armon/go-metrics is officially deprecated. Usage of armon/go-metrics will remain the default until mid-2025 with opt-in support continuing to the end of 2025.

Migration To migrate an application currently using the older armon/go-metrics to instead use hashicorp/go-metrics the following should be done.

  1. Upgrade libraries using armon/go-metrics to consume hashicorp/go-metrics/compat instead. This should involve only changing import statements. All repositories in the hashicorp namespace will be migrated by February of 2025.
  2. Update the application's library dependencies to those that have the compatibility layer configured.
  3. Update the application to use hashicorp/go-metrics for configuring metrics export instead of armon/go-metrics
    • Replace all application imports of github.com/armon/go-metrics with github.com/hashicorp/go-metrics
    • Instrument your build system to build with the hashicorpmetrics tag.