generate

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: BSD-3-Clause Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenerateCmd = &cobra.Command{
	Use:     "generate",
	Aliases: []string{"gen", "g"},
	Short:   "Generate secrets and bootstrap credentials for Arcane",
}

Functions

func BuildEdgeMTLSURISAN added in v1.19.0

func BuildEdgeMTLSURISAN(appURL string, envID string) *url.URL

BuildEdgeMTLSURISAN returns the SPIFFE URI SAN for an edge environment ID.

func EdgeMTLSTrustDomain added in v1.19.0

func EdgeMTLSTrustDomain(appURL string) string

EdgeMTLSTrustDomain returns the SPIFFE trust domain derived from an Arcane app URL.

func GenerateAPIKey added in v1.17.0

func GenerateAPIKey() (string, error)

func GenerateP384PrivateKey added in v1.19.0

func GenerateP384PrivateKey() (*ecdsa.PrivateKey, error)

GenerateP384PrivateKey generates an ECDSA P-384 private key.

func NewEdgeMTLSCATemplate added in v1.19.0

func NewEdgeMTLSCATemplate() (*x509.Certificate, error)

NewEdgeMTLSCATemplate builds Arcane's edge mTLS CA certificate template.

func NewEdgeMTLSClientTemplate added in v1.19.0

func NewEdgeMTLSClientTemplate(commonName string, uriSAN *url.URL, dnsSANs []string) (*x509.Certificate, error)

NewEdgeMTLSClientTemplate builds an edge-agent client certificate template.

func NewServerTLSTemplate added in v1.19.0

func NewServerTLSTemplate(commonName string, hosts []string) (*x509.Certificate, error)

NewServerTLSTemplate builds a self-signed Arcane HTTPS server certificate template.

Types

This section is empty.

Jump to

Keyboard shortcuts

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