mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-20 18:21:09 +01:00
36 lines
1.0 KiB
Go
36 lines
1.0 KiB
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
//go:build !enterprise
|
|
|
|
package pki
|
|
|
|
import (
|
|
"context"
|
|
"crypto/x509"
|
|
"errors"
|
|
"math/big"
|
|
|
|
"github.com/hashicorp/go-hclog"
|
|
"github.com/hashicorp/vault/builtin/logical/pki/issuing"
|
|
"github.com/hashicorp/vault/sdk/logical"
|
|
)
|
|
|
|
var ErrMetadataIsEntOnly = errors.New("certificate metadata is only supported on Vault Enterprise")
|
|
|
|
func storeMetadata(ctx context.Context, storage logical.Storage, issuerId issuing.IssuerID, role string, certificate *x509.Certificate, metadata interface{}) error {
|
|
return ErrMetadataIsEntOnly
|
|
}
|
|
|
|
func GetCertificateMetadata(ctx context.Context, storage logical.Storage, serialNumber *big.Int) (*CertificateMetadata, error) {
|
|
return nil, ErrMetadataIsEntOnly
|
|
}
|
|
|
|
func (b *backend) doTidyCertMetadata(ctx context.Context, req *logical.Request, logger hclog.Logger, config *tidyConfig) error {
|
|
return ErrMetadataIsEntOnly
|
|
}
|
|
|
|
func validateMetadataConfiguration(role *issuing.RoleEntry) error {
|
|
return ErrMetadataIsEntOnly
|
|
}
|