snowflakewifsvc

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Package snowflakewifsvc owns desired identity state and privileged reconciliation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(ctx context.Context, txm postgres.TransactionManager, issuer string, org, ds slug.Slug, account string) (snowflakewif.Identity, error)

Resolve exposes only a fresh readiness decision through the executor capability.

func SetDesired

func SetDesired(ctx context.Context, db postgres.DBTX, org, ds slug.Slug, issuer, account string, enabled bool) (bool, error)

SetDesired participates in the owning data source's mutation transaction and returns readiness.

Types

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(txm postgres.TransactionManager, registrar Registrar, audit events.Repository) (*Reconciler, error)

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context) error

Reconcile bounds each pass and serializes against owner mutations. Retrying after a crash uses the persisted registration ID, including before first create.

type Registrar

type Registrar interface {
	Ensure(context.Context, string, spiffeid.ID) error
	Revoke(context.Context, string, spiffeid.ID) error
}

Registrar is implemented by the isolated SPIRE CLI client and deterministic fakes.

Jump to

Keyboard shortcuts

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