receive

package
v0.28.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2025 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Keys

func Keys(cid string, r *http.Request, w http.ResponseWriter)

Keys processes a request to set root cryptographic keys within the application, validating the SPIFFE ID of the requester and the payload structure before proceeding.

This function is pivotal in scenarios where updating the application's cryptographic foundation is required, often performed by a trusted VSecM Sentinel entity.

The returned keys need to be protected and kept secret, as they are the foundation for the cryptographic operations within the application. The keys are used to encrypt and decrypt secrets, and to sign and verify the integrity of the data.

Parameters:

  • cid (string): Correlation ID for operation tracing and logging.
  • w (http.ResponseWriter): The HTTP response writer to send back responses or errors.
  • r (*http.Request): The incoming HTTP request containing the payload.
  • spiffeid (string): The SPIFFE ID associated with the requester, used for authorization validation.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL