git.delta.rocks / fleet / refs/commits / 3ddf3ff6da5e

difftreelog

source

docs/migration.adoc1.3 KiBrenderedsourcehistory
12= Migration Guide3:slug: migration4:order: 256== fleet.nix <unset> => 0.1.078Add version field::9Set 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.1011Move every secret part::12Before it was only public and private, now it can be any number of parts.1314In your fleet.nix file, look at every record like this:15[source,nix]16----17gitlab-initial-root = {18	createdAt = "2024-03-01T15:54:32.983358495Z";19	public = "example";20	secret = "vp%d6wO#0#D2.../dgCA+v4Gf:YG";21};22----2324And modify it as following:25[source,nix]26----27gitlab-initial-root = {28	createdAt = "2024-03-01T15:54:32.983358495Z";29	public.raw = "<PLAINTEXT>example";30	secret.raw = ''31		<ENCRYPTED><Z85-ENCODED>32		vp%d6wO#0#D2.../dgCA+v4Gf:YG33	'';34};35----3637Default encoding was also changed from `Z85` to `base64`. This conversion will be done by fleet automatically.3839Update references to secrets in fleet/nixos configurations::40Instead of `config.secrets.secret-name.secretPath` use `config.secrets.secret-name.secret.path`,41instead of `config.secrets.secret-name.stableSecretPath` use `config.secrets.secret-name.secret.stablePath`,42instead of `config.secrets.secret-name.public` use `config.secrets.secret-name.public.data`.