git.delta.rocks / fleet / refs/commits / 0ea4b47ffa04

difftreelog

source

docs/reference/migration.adoc1.3 KiBrenderedsourcehistory
12= Migration Guide3:order: 245== fleet.nix <unset> => 0.1.067Add version field::8Set it to 0.1.0; This field specifies which version of fleet do you use for cluster management, breaking changes will also break this value to make sure you read this guide.910Move every secret part::11Before it was only public and private, now it can be any number of parts.1213In your fleet.nix file, look at every record like this:14[source,nix]15----16gitlab-initial-root = {17	createdAt = "2024-03-01T15:54:32.983358495Z";18	public = "example";19	secret = "vp%d6wO#0#D2.../dgCA+v4Gf:YG";20};21----2223And modify it as following:24[source,nix]25----26gitlab-initial-root = {27	createdAt = "2024-03-01T15:54:32.983358495Z";28	public.raw = "<PLAINTEXT>example";29	secret.raw = ''30		<ENCRYPTED><Z85-ENCODED>31		vp%d6wO#0#D2.../dgCA+v4Gf:YG32	'';33};34----3536Default encoding was also changed from `Z85` to `base64`. This conversion will be done by fleet automatically.3738Update references to secrets in fleet/nixos configurations::39Instead of `config.secrets.secret-name.secretPath` use `config.secrets.secret-name.secret.path`,40instead of `config.secrets.secret-name.stableSecretPath` use `config.secrets.secret-name.secret.stablePath`,41instead of `config.secrets.secret-name.public` use `config.secrets.secret-name.public.data`.