vault/sdk
Vault Automation 0adb749a82
Check rate limits before doing json limits checking (#9688) (#9775)
* update the order of the requests handlers

* switch back to maxrequestsize, prevent the error by restricting the buffer size

* add test

Co-authored-by: miagilepner <mia.epner@hashicorp.com>
2025-10-02 09:30:31 +00:00
..
database Added PSC Private Service Connect for GCP CloudSQL (#27889) 2025-07-15 11:29:47 -05:00
framework Copy Auth Config Display Attr Updates into main (#8995) (#8997) 2025-09-03 09:37:28 -06:00
helper Check rate limits before doing json limits checking (#9688) (#9775) 2025-10-02 09:30:31 +00:00
logical Increment certificate counts in all PKI backends (#9693) (#9721) 2025-09-29 15:33:00 -04:00
physical Introduce hashicorp/go-metrics compatibility to the SDK module (#29358) 2025-04-10 11:20:49 -05:00
plugin VAULT-37630: CE changes for recover as a copy policy handling (#31472) 2025-08-12 10:29:22 +02:00
queue [VAULT-38602] Remove the redundant PeekByKey method from the priority queue and login MFA priority queue (#9362) (#9373) 2025-09-16 17:19:39 +00:00
rotation add ce side code and stubs for rotation manager 2025-07-15 12:48:00 -04: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 Update to Go 1.25.1 (#8284) (#9191) 2025-09-09 13:21:57 +00:00
go.sum Update to Go 1.25.1 (#8284) (#9191) 2025-09-09 13:21:57 +00:00
LICENSE [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07: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.