deletion

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

K8sSecretDeleteQueue contains k8s `Secret`s to be removed.

SecretDeleteQueue items are persisted to files. They are buffered, so that they can be written in the order they are queued and there are no concurrent writes to the same file at a time.

Functions

func ProcessK8sSecretDeleteQueue

func ProcessK8sSecretDeleteQueue()

ProcessK8sSecretDeleteQueue manages the deletion of Kubernetes secrets that have been marked for deletion and placed in a queue. This operation is controlled by an environment configuration that determines whether the deletion of linked K8s secrets is permitted. The function employs goroutines for concurrent deletion tasks and asynchronous error reporting, aiming to optimize the deletion process and handle potential errors effectively.

func ProcessSecretDeleteQueue

func ProcessSecretDeleteQueue()

ProcessSecretDeleteQueue continuously processes a queue of secrets scheduled for deletion, removing each secret from disk. This function plays a crucial role in the secure management of secrets by ensuring that outdated or unnecessary secrets are not left stored, potentially posing a security risk.

It operates in an endless loop, monitoring a global queue of secrets to be deleted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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