blob: 3c39835687e744694fa7c28f92533252e4d45124 [file] [log] [blame]
// Copyright The Monogon Project Authors.
// SPDX-License-Identifier: Apache-2.0
package launch
import (
"crypto/ed25519"
apb "source.monogon.dev/metropolis/proto/api"
)
var (
// InsecurePrivateKey is a ED25519 key that can be used during development as
// a fixed Owner Key when bootstrapping new clusters.
InsecurePrivateKey = ed25519.NewKeyFromSeed([]byte(
"\xb5\xcf\x35\x0f\xbf\xfb\xea\xfa\xa0\xf0\x29\x9d\xfa\xf7\xca\x6f" +
"\xa2\xc2\xc7\x87\xd7\x03\x3e\xb2\x11\x4f\x36\xe0\x22\x73\x4f\x87"))
// InsecurePublicKey is the ED25519 public key corresponding to
// InsecurePrivateKey.
InsecurePublicKey = InsecurePrivateKey.Public().(ed25519.PublicKey)
// InsecureClusterBootstrap is a ClusterBootstrap message to be used within
// NodeParameters when bootstrapping a development cluster that should be owned
// by the InsecurePrivateKey.
InsecureClusterBootstrap = &apb.NodeParameters_ClusterBootstrap{
OwnerPublicKey: InsecurePublicKey,
}
)