blob: 3c39835687e744694fa7c28f92533252e4d45124 [file] [log] [blame]
Tim Windelschmidt6d33a432025-02-04 14:34:25 +01001// Copyright The Monogon Project Authors.
Serge Bazanski886d2892021-04-13 16:39:39 +02002// SPDX-License-Identifier: Apache-2.0
Serge Bazanski886d2892021-04-13 16:39:39 +02003
Tim Windelschmidt9f21f532024-05-07 15:14:20 +02004package launch
Serge Bazanski886d2892021-04-13 16:39:39 +02005
6import (
7 "crypto/ed25519"
8
9 apb "source.monogon.dev/metropolis/proto/api"
10)
11
12var (
13 // InsecurePrivateKey is a ED25519 key that can be used during development as
14 // a fixed Owner Key when bootstrapping new clusters.
15 InsecurePrivateKey = ed25519.NewKeyFromSeed([]byte(
Serge Bazanski96043bc2021-10-05 12:10:13 +020016 "\xb5\xcf\x35\x0f\xbf\xfb\xea\xfa\xa0\xf0\x29\x9d\xfa\xf7\xca\x6f" +
Serge Bazanski886d2892021-04-13 16:39:39 +020017 "\xa2\xc2\xc7\x87\xd7\x03\x3e\xb2\x11\x4f\x36\xe0\x22\x73\x4f\x87"))
18 // InsecurePublicKey is the ED25519 public key corresponding to
19 // InsecurePrivateKey.
20 InsecurePublicKey = InsecurePrivateKey.Public().(ed25519.PublicKey)
21 // InsecureClusterBootstrap is a ClusterBootstrap message to be used within
22 // NodeParameters when bootstrapping a development cluster that should be owned
23 // by the InsecurePrivateKey.
24 InsecureClusterBootstrap = &apb.NodeParameters_ClusterBootstrap{
25 OwnerPublicKey: InsecurePublicKey,
26 }
27)