From 58255d47fad533d71b877b666a421930605477b0 Mon Sep 17 00:00:00 2001 From: Ludovic Piot Date: Wed, 5 Nov 2025 17:22:02 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20lpiot-issue-10:=20Add=20a=20"del?= =?UTF-8?q?ete=20PAT"=20step=20during=20the=20Flux=20install=20process?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- slides/flux/bootstrap.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/slides/flux/bootstrap.md b/slides/flux/bootstrap.md index 1809e99b..48256c82 100644 --- a/slides/flux/bootstrap.md +++ b/slides/flux/bootstrap.md @@ -78,7 +78,7 @@ Prerequisites are: - `Flux` _CLI_ needs a `Github` personal access token (_PAT_) - to create and/or access the `Github` repository - to give permissions to existing teams in our `Github` organization - - The PAT needs _CRUD_ permissions on our `Github` organization + - The _PAT_ needs _CRUD_ permissions on our `Github` organization - repositories - As **_⚙️OPS_** team, let's creates a `Github` personal access token… @@ -181,6 +181,22 @@ Here is the result --- +### The PAT is not needed anymore! + +- During the install process, `Flux` creates an `ssh` key pair so that it is able to contribute to the `Github` repository. + +```bash +► generating source secret +✔ public key: ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBFqaT8B8SezU92qoE+bhnv9xONv9oIGuy7yVAznAZfyoWWEVkgP2dYDye5lMbgl6MorG/yjfkyo75ETieAE49/m9D2xvL4esnSx9zsOLdnfS9W99XSfFpC2n6soL+Exodw== +✔ configured deploy key "flux-system-main-flux-system-./clusters/CLOUDY" for "https://github.com/container-training-fleet/fleet-config-using-flux-XXXXX" +► applying source secret "flux-system/flux-system" +✔ reconciled source secret +``` + +- You can now delete the formerly created _Personal Access Token_: `Flux` won't use it anymore. + +--- + ### 📂 Flux config files `Flux` has been successfully installed onto our **_☁️CLOUDY_** Kubernetes cluster!