package
0.0.0-20240416031220-a17cf7f72c6c
Repository: https://github.com/libopenstorage/secrets.git
Documentation: pkg.go.dev

# README

To run UTs

  1. Create a Key Protect Service in the US South region.
  2. Create a Root Key
  3. Get the Service API Key and the Instance ID using the steps describe under pkg/ibm/README.md
$ IBM_SERVICE_API_KEY=<api_key> IBM_INSTANCE_ID=<instance_id> IBM_CUSTOMER_ROOT_KEY=<crk> go test -v .

# Functions

No description provided by the author

# Constants

IbmBaseUrlKey is the Key Protect Service's Base URL.
IbmCustomerRootKey is the Customer Root Key used for obtaining DEKs.
IbmInstanceIdKey is the Key Protect Service's Instance ID.
IbmKvdbKey is used to setup IBM Key Protect Secret Store with kvdb for persistence.
IbmServiceApiKey is the service ID API Key.
IbmTokenUrlKey is the Key Protect Service's Token URL.
Name of the secret store.

# Variables

ErrCRKNotProvided is returned when Customer Root Key is not provided.
ErrIbmInstanceIdKeyNotSet is returned when IBM_INSTANCE_ID is not set.
ErrIbmServiceApiKeyNotSet is returned when IBM_SERVICE_API_KEY is not set.
ErrInvalidKvdbProvided is returned when an incorrect KVDB implementation is provided for persistence store.