encryption

package
v1.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

README

Automatic Encryption

automaticEncryption:
    enabled: true
    secretName: cloud-press-remote-sync

Documentation

Overview

Package encryption contains the Obscure and Reveal commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachAutomaticEncryption

func AttachAutomaticEncryption(syncDefinition *v1alpha1.PodFilesystemSync, params *appContext.SynchronizationParameters, kubeClient kubernetes.Interface) error

AttachAutomaticEncryption is mutating SynchronizationParameters by adding an encryption secret and setting up parameters

the encryption secret is generated and placed in `kind: Secret` if it was not created previously
So, an existing secret could be used, or a new one could be generated

func Obscure

func Obscure(x string) (string, error)

Obscure a value

This is done by encrypting with AES-CTR

Types

This section is empty.

Jump to

Keyboard shortcuts

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