mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-11 01:42:06 -04:00
* Make generate-root and generate-operation-token endpoints authenticated by default (#12856) Also allow root tokens to be used in DR requests.
27 lines
740 B
Go
27 lines
740 B
Go
// Copyright IBM Corp. 2016, 2025
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
//go:build !enterprise
|
|
|
|
package http
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/hashicorp/vault/sdk/logical"
|
|
"github.com/hashicorp/vault/vault"
|
|
"github.com/hashicorp/vault/vault/quotas"
|
|
)
|
|
|
|
func entWrapGenericHandler(core *vault.Core, in http.Handler, props *vault.HandlerProperties) http.Handler {
|
|
// Wrap the help wrapped handler with another layer with a generic
|
|
// handler
|
|
return wrapGenericHandler(core, in, props)
|
|
}
|
|
|
|
func entDROperationRoutes(mux *http.ServeMux, core *vault.Core) {}
|
|
|
|
func entAdjustResponse(core *vault.Core, w http.ResponseWriter, req *logical.Request) {
|
|
}
|
|
|
|
func entRlqRequestFields(core *vault.Core, r *http.Request, quotaReq *quotas.Request) {}
|