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.
Click to show internal directories.
Click to hide internal directories.