| Tim Windelschmidt | 6d33a43 | 2025-02-04 14:34:25 +0100 | [diff] [blame^] | 1 | // Copyright The Monogon Project Authors. |
| Serge Bazanski | 886d289 | 2021-04-13 16:39:39 +0200 | [diff] [blame] | 2 | // SPDX-License-Identifier: Apache-2.0 |
| Serge Bazanski | 886d289 | 2021-04-13 16:39:39 +0200 | [diff] [blame] | 3 | |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 4 | package launch |
| Serge Bazanski | 886d289 | 2021-04-13 16:39:39 +0200 | [diff] [blame] | 5 | |
| 6 | import ( |
| 7 | "crypto/ed25519" |
| 8 | |
| 9 | apb "source.monogon.dev/metropolis/proto/api" |
| 10 | ) |
| 11 | |
| 12 | var ( |
| 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 Bazanski | 96043bc | 2021-10-05 12:10:13 +0200 | [diff] [blame] | 16 | "\xb5\xcf\x35\x0f\xbf\xfb\xea\xfa\xa0\xf0\x29\x9d\xfa\xf7\xca\x6f" + |
| Serge Bazanski | 886d289 | 2021-04-13 16:39:39 +0200 | [diff] [blame] | 17 | "\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 | ) |