flysecrets

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package flysecrets plans a Fly.io app's secrets.

It is the second hosting provider, and it exists partly to prove the seam is a seam: Render's planner and this one share no code, only an interface.

The important difference is what the provider will tell you. Render returns a variable's value, so upkeep can say "this differs from the config". Fly returns a name and a digest and never a value, so upkeep can say a secret is missing and it can set one — but it cannot say an existing one is wrong. Every plan here is worded to claim only what was actually checked.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Plan

func Plan(
	ctx context.Context,
	api API,
	f config.Fly,
	getenv func(string) string,
	secrets *secret.Set,
) (plan.Plan, error)

Plan diffs the declared secrets against the names the app has.

Types

type API

type API interface {
	Secrets(ctx context.Context, app string) (map[string]flyapi.Secret, error)
	SetSecret(ctx context.Context, app, name, value string) error
}

API is the half of Fly upkeep uses.

Jump to

Keyboard shortcuts

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