stepsecret

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package stepsecret resolves the Secrets a workflow step names, which it reads as the controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyTLS

func ApplyTLS(cfg *tls.Config, data map[string][]byte) error

ApplyTLS configures cfg from a step's TLS Secret data: ca.crt for the server's trust, and client.crt with client.key for a client certificate. A value is the PEM itself, as a kubernetes.io/tls Secret holds it, or the PEM base64-encoded once more. A Secret holding none of the three is an error.

func Key

func Key(ctx context.Context, cli client.Client, ref, namespace, stepNamespace string) (client.ObjectKey, error)

Key resolves a step's reference to a Secret, as RefKey parses it, defaulting to stepNamespace. A step reads Secrets as the controller, so one outside stepNamespace is allowed only when the step runs for a user (the Application's, with authentication on) who may get it there; otherwise the reference is refused, as it is when the step has no namespace.

func RefKey

func RefKey(ref, namespace string) client.ObjectKey

RefKey parses a reference to a Secret: ref is a name or namespace/name, and namespace, when set, names its namespace. It checks nothing; a step's reference goes through Key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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