From d8a5bfffff7758ff86814585089a00eae9e7cbba Mon Sep 17 00:00:00 2001 From: tada5hi Date: Tue, 1 Dec 2026 12:20:53 +0100 Subject: [PATCH 1/2] docs(node): sync with flame-node chart 1.4 Remove the bundled Keycloak and the offline mode, which the chart dropped in 1.3.0, fix the ArgoCD secret list, and document the image registry mirror, proxy credentials secret, external S3 storage and routing options. --- src/getting-started/components.md | 6 +- src/guide/admin/analysis-definition.md | 6 +- src/guide/deployment/node-installation.md | 227 ++++++++++-------- src/guide/deployment/node-security.md | 7 +- src/guide/deployment/node-troubleshooting.md | 27 +-- src/guide/faqs/faqs-of-security-privacy.md | 2 +- src/guide/faqs/faqs-of-troubleshooting.md | 4 +- .../values_no_reverse_proxy_example.yaml | 20 -- 8 files changed, 138 insertions(+), 161 deletions(-) delete mode 100644 src/public/files/values_no_reverse_proxy_example.yaml diff --git a/src/getting-started/components.md b/src/getting-started/components.md index 6e0d6dcf..29413730 100644 --- a/src/getting-started/components.md +++ b/src/getting-started/components.md @@ -60,15 +60,13 @@ repository is used to set up local nodes by administrators. | Third-Party Service | Repository | Programing Language | |:--------------------|:----------------------------------------------------------|:-------------------:| -| **KeyCloak** | [keycloak/keycloak](https://github.com/keycloak/keycloak) | Go/JavaScript | | **Kong** | [Kong/kong](https://github.com/Kong/kong) | Lua/Perl | -| **MinIO** | [minio/minio](https://github.com/minio/minio) | Go | +| **SeaweedFS** | [seaweedfs/seaweedfs](https://github.com/seaweedfs/seaweedfs) | Go | [//]: # (| **Airflow** | [apache/airflow](https://github.com/apache/airflow) | Python/TypeScript |) [//]: # (| **Vault** | [hashicorp/vault](https://github.com/hashicorp/vault) | Go/JavaScript |) -* `Keycloak` - Local Identity and access management at the node * `Kong` - API Gateway at node used data provisioning service -* `MinIO` - Object storage for result Service +* `SeaweedFS` - Object storage for the storage service Not listed as third party services are `nginx`, `mongoDB` and `Postgres`. diff --git a/src/guide/admin/analysis-definition.md b/src/guide/admin/analysis-definition.md index 7cfbad2c..ef311f15 100644 --- a/src/guide/admin/analysis-definition.md +++ b/src/guide/admin/analysis-definition.md @@ -20,7 +20,7 @@ Though the code for each analysis is manually reviewed and approved prior to run However, the analysis cannot run in absolute isolation since it still requires access to the data and needs to be able to communicate with other FLAME components in order to access data, send progress updates and intermediate and final results. When a FLAME Analysis is started, the Pod Orchestrator service creates two separate Deployments: one for the analysis itself, and one for a NGINX instance. The Analysis Deployment executes the analysis script, while the NGINX Deployment acts as its forward proxy. In order to not infringe on the hosting system's safety, the Analysis Deployment is subject to very stringent policies in place to severely limit its traffic, making the NGINX Deployment its single possible point of interaction (outside of Kubernetes' own kube-dns service responsible for resolving the Analysis Deployment's cluster IP address). Details on how this NGINX sidecar controls traffic is discussed in the [NGINX Deployment](#nginx-deployment) section. -An additional security measure to ensure that the Analysis Pod was created using the FLAME pipeline is verification using the OIDC protocol and the included Keycloak instance. Keycloak serves as an identity provider (IDP) to check whether requests made by certain components or services are who they say they are by bundling a JSON Web Token (JWT) with their request. Our software registers the FLAME services with Keycloak upon deployment and communication is authenticated using the OAuth2 endpoints. +An additional security measure to ensure that the Analysis Pod was created using the FLAME pipeline is verification using the OIDC protocol and the Hub's identity provider (Authup). The Hub creates an OAuth2 client for every analysis. When starting an analysis, the Pod Orchestrator obtains an access token (JSON Web Token, JWT) for this client from the Hub and passes it to the analysis container, which bundles it with its requests to the node services. The node services verify the token against the Hub's public keys before accepting a request. ### Template Each Analysis Deployment is defined following this template: @@ -54,8 +54,8 @@ spec: env: - name: DATA_SOURCE_TOKEN value: none_needed - - name: KEYCLOAK_TOKEN - value: + - name: AUTHUP_TOKEN + value: - name: ANALYSIS_ID value: - name: PROJECT_ID diff --git a/src/guide/deployment/node-installation.md b/src/guide/deployment/node-installation.md index e37a3376..adde9d15 100644 --- a/src/guide/deployment/node-installation.md +++ b/src/guide/deployment/node-installation.md @@ -100,12 +100,6 @@ resolve. The crypto private key can also be provided using an existing secret. For more information on how to do this, see [Using an Existing Secret for the Crypto Private Key](./node-troubleshooting#using-an-existing-secret-for-the-crypto-private-key). -::: info Note The default installation method assumes that if you have SSL enabled (i.e. using HTTPS), then this is -handled by a reverse proxy. If this is not the case, you need to disable the proxy headers for keycloak like shown in -this -example. -::: - ### Routing Most kubernetes distributions previously used only the Ingress API for routing traffic, but that has been recently @@ -129,12 +123,37 @@ kubectl get gatewayclass If either command gives an error or returns `NotFound`/`Unhandled Error`, then they are not installed and you cannot use the "gateway" option for `.expose.type`. -### Keycloak +Further routing options are set under `expose`: + +* `expose.ingress.className` selects the IngressClass (e.g. `nginx`) if your cluster has no default one. +* `expose.tls.secretName` names the TLS secret for the hostname. +* `expose.gateway.external: true` together with `expose.gateway.parentRef` attaches the node's routes to an existing + Gateway instead of creating one. +* `expose.gateway.nginxGatewayFabric.enabled: true` adds the policies the node needs when the Gateway uses NGINX + Gateway Fabric (larger upload size and timeouts for the SeaweedFS admin route, larger proxy and header buffers for + the Node UI's session cookies). With another Gateway implementation, configure the equivalent settings on the + Gateway yourself. + +The [`values.yaml`](https://github.com/PrivateAIM/helm/blob/master/charts/flame-node/values.yaml) of the chart +describes all options. + +### Authentication -By default, the FLAME Node package deploys Keycloak as part of the installation to handle authentication between the -node's own services (Hub Adapter, Pod Orchestrator, etc.). Node UI user login, however, goes directly through the Hub -using the `hub.auth.clientId`/`hub.auth.clientSecret` credentials configured in the [Preparation](#preparation) step -above — there is no separate, per-node identity provider to set up for the Node UI. +The FLAME Node does not run its own identity provider. All authentication goes through the Hub's identity service +(Authup): + +* **Node UI users** log in with their Hub account, using the `hub.auth.clientId`/`hub.auth.clientSecret` credentials + configured in the [Preparation](#preparation) step above. +* **Node services** (Hub Adapter, Pod Orchestrator, etc.) authenticate with the same node client and verify incoming + tokens against the Hub's public keys (JWKS). +* **Analyses** receive a token for their own Hub-managed client, which the Pod Orchestrator obtains from the Hub when + it starts the analysis. + +::: info Upgrading from older chart versions +Chart versions before 1.3 deployed a bundled Keycloak instance. It has been removed, along with the `keycloakx`, +`keycloak-postgresql`, `keycloakClientSecrets` and `offline` values. Remove these from your values file when +upgrading. The PVC of the former Keycloak database is not deleted automatically and can be removed manually. +::: ::: tip Allowed Redirect URI For Hub-based login to work, make sure the **Allowed Redirect URI** is also set on your node's client in the Hub — @@ -273,6 +292,48 @@ check your kubernetes distribution's documentation for suggested values. It is h record to the `noProxy` value for the cluster in which you are deploying the FLAME Node. The name for this record takes the form of `` and by default is equal to `.cluster.local`. +### Proxy Credentials in a Secret + +If your proxy URL contains credentials (e.g. `http://user:pass@proxy.example.de:3128`), you can keep them out of your +values file by storing them in an existing Secret with the keys `httpProxy` and `httpsProxy`: + +```bash +kubectl create secret generic my-proxy-secret \ + --from-literal=httpProxy='http://user:pass@proxy.example.de:3128' \ + --from-literal=httpsProxy='http://user:pass@proxy.example.de:3128' +``` + +```yaml +proxy: + existingSecret: "my-proxy-secret" + noProxy: "10.0.0.0/8,192.168.0.0/16,127.0.0.1,172.16.0.0/16,.svc,localhost,.cluster.local" +``` + +When `proxy.existingSecret` is set, `proxy.httpProxy` and `proxy.httpsProxy` are ignored. + +## Image Registry Mirror + +By default, the node's images are pulled from `ghcr.io`, `docker.io` and `quay.io`. If your servers may only pull from +an internal registry (e.g. a Harbor mirror), set `global.imageRegistry` to the registry including its project: + +```yaml +global: + imageRegistry: harbor.example.org/node-images +``` + +This applies to the FLAME services, their init containers, the analysis containers started by the Pod Orchestrator and +SeaweedFS. The mirror must keep the upstream path of each image (e.g. `ghcr.io/privateaim/node-ui` becomes +`harbor.example.org/node-images/privateaim/node-ui`, and Docker Hub images such as `busybox` become +`.../library/busybox`). + +The other sub-charts (Kong, PostgreSQL, MongoDB, VictoriaLogs, Vector, Blaze) have their own image settings. The +`values_harbor.yaml` file in the [helm repository](https://github.com/PrivateAIM/helm/blob/master/charts/flame-node/values_harbor.yaml) +sets all of them for the PrivateAIM Harbor and can serve as a template for your own mirror: + +```bash +helm install flame-node flame/flame-node -f values_harbor.yaml -f my-values.yaml +``` + ## Additional Certificate Authority (CA) Certificates Some locations may have additional, self-signed SSL/TLS certificates that they use for monitoring web traffic on their @@ -350,11 +411,6 @@ kong-postgresql: storage: className: longhorn -# Keycloak database -keycloak-postgresql: - storage: - className: longhorn - # Message broker database mongodb: storage: @@ -388,6 +444,32 @@ dataStore: storageClass: longhorn ``` +### Using an External S3 for the Storage Service + +The storage service keeps local results and checkpoints of analyses in an S3 bucket. By default, it uses the bundled +SeaweedFS instance. To use your own S3-compatible storage instead, disable SeaweedFS and point the storage service at +your instance: + +```yaml +seaweedfs: + enabled: false + +storageService: + s3: + endpoint: s3.example.org:9000 # host(:port), without http:// or https:// + tls: + enabled: true + bucket: flame + existingSecret: my-s3-secret # or set accessKey/secretKey directly +``` + +The bucket must already exist and be writable with the given credentials. The Secret must contain the keys +`accessKey` and `secretKey`: + +```bash +kubectl create secret generic my-s3-secret --from-literal=accessKey=... --from-literal=secretKey=... +``` + ### Creating a Storage Class There are multiple reasons why you may want to create a new storage class in your kubernetes cluster such as delineating @@ -435,11 +517,10 @@ private key for the result service. #### Accessing the Services -Once you have deployed the FLAME Node with routing disabled, three services need to be port-forwarded: +Once you have deployed the FLAME Node with routing disabled, two services need to be port-forwarded: - Node UI - Hub Adapter -- Keycloak ##### Get the Service Names @@ -461,8 +542,7 @@ our local machine: ```bash kubectl port-forward svc/flame-node-node-ui-service 3000:3000 & \ -kubectl port-forward svc/flame-node-hub-adapter-service 5000:5000 & \ -kubectl port-forward svc/flame-node-keycloak 8080:80 +kubectl port-forward svc/flame-node-hub-adapter-service 5000:5000 ``` Now you can access these services in your browser. For example, to access the Node UI, open a browser and navigate to @@ -475,15 +555,12 @@ file. On Unix systems, this file is often located at `/etc/hosts` and on Windows `C:\windows\system32\drivers\etc\hosts`. If you choose to do this, only the machines with this manual configuration will be able to access the Node UI. -#### Enable Offline Mode +No special configuration is needed for this: the node services authenticate against the Hub, not against the node's +own hostname, so they do not need to resolve it. The only exception are the sign-in and sign-out events, which the +Node UI server reports to the Hub Adapter via the hostname; these are not recorded in this setup. -Because the provided hostname is only resolvable on those machines for which the hostname and IP were manually mapped to -one another, the k8s cluster will not be able to find the other services using this name. Thus, when deploying the FLAME -Node in this manner, the Node UI and Hub Adapter must have `offline` set to `true` in their configurations so that they -can still communicate with the included keycloak instance for client authentication. - -Other settings can be left as though a FQDN is being used including enabling routing and providing the locally -resolvable hostname. Your `my-values.yaml` should look similar to this: +Configure the node as though a FQDN is being used, including enabling routing and providing the locally resolvable +hostname. Your `my-values.yaml` should look similar to this: ```yaml expose: @@ -499,8 +576,6 @@ hub: -----BEGIN PRIVATE KEY----- myExamplePrivateKey -----END PRIVATE KEY----- - -offline: true ``` ## ArgoCD & Secrets @@ -517,22 +592,21 @@ made available in the same namespace that the node helm chart is deployed in. Here is an overview of the secrets that need to be generated prior to deployment: -| Secret | Purpose | -|----------------------------------------------|--------------------------------------------------------------------------------| -| \-hub-client-secret | Node client credentials for fetching data from the Hub. | -| \-ecdh-private-key-secret | Private key for encrypting messages to the Hub | -| \-postgres-credentials | Credentials for the PostgresDB instance used by the Node services | -| \-kong-postgres-credentials | Credentials for the PostgresDB instance used by the Kong subchart | -| \-keycloak-postgres-credentials | Credentials for the PostgresDB instance used by the Keycloak subchart | -| \-keycloak-auth-credentials | Credentials for accessing the admin console of the included Keycloak instance. | -| \-keycloak-client-secrets | Keycloak client secrets for the node services | -| \-seaweedfs-s3-secret | S3 credentials for the storage service. Required for bundled SeaweedFS (default), not needed if `storageService.s3.endpoint` is set. | +| Secret | Purpose | +|------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------| +| \-hub-client-secret | Node client credentials for fetching data from the Hub (`hub.auth.existingSecret`) | +| \-ecdh-private-key-secret | Private key for encrypting messages to the Hub (`hub.crypto.existingSecret`) | +| \-postgres-credentials | Credentials for the PostgresDB instance used by the Node services | +| \-kong-postgres-credentials | Credentials for the PostgresDB instance used by the Kong subchart | +| \-node-ui-secret | Secret the Node UI uses to encrypt its session cookies (`ui.nuxtAuthExistingSecret`) | +| \-seaweedfs-s3-secret | S3 credentials for the bundled SeaweedFS (default). Not needed if an [external S3](#using-an-external-s3-for-the-storage-service) is used | +| \-storage-s3-secret | Credentials for an [external S3](#using-an-external-s3-for-the-storage-service) (`storageService.s3.existingSecret`), only if one is used | ::: info Secret Names -You will need to know what the release name of your node deployment is when you generate these secrets since the release -name is part of most of the secret names. For example, if you plan to use "my-node" as the release name for your node -deployment, then you will need to create secrets named `my-node-ecdh-private-key-secret`, -`my-node-postgres-credentials`, etc. +The names above are suggestions: you can choose any name, as long as your values file references it. Including the +release name (e.g. `my-node-ecdh-private-key-secret` for the release "my-node") avoids collisions when several +releases share a namespace. If you do not set them, the chart creates the PostgreSQL secrets under the fixed names +`postgres-credentials-secret` and `postgres-kong-credentials-secret`. ::: ### Pregenerating Secrets @@ -545,18 +619,6 @@ secrets, or through an external secret manager such as Vault. Example kubernetes template file containing secrets to be generated before node deployment: ```yaml -apiVersion: v1 -kind: Secret -metadata: - name: -keycloak-client-secrets - namespace: -type: Opaque -data: - hubAdapterClientSecret: - podOrcClientSecret: - ---- - apiVersion: v1 kind: Secret metadata: @@ -610,28 +672,14 @@ data: apiVersion: v1 kind: Secret metadata: - name: -keycloak-postgres-credentials + name: -node-ui-secret namespace: type: Opaque data: - superPassword: - keycloakDbUser: - keycloakDbPassword: - keycloakDbName: + nuxtAuthSecret: # e.g. the output of `openssl rand -base64 32` --- -apiVersion: v1 -kind: Secret -metadata: - name: -keycloak-auth-credentials - namespace: -type: Opaque -data: - KC_BOOTSTRAP_ADMIN_USERNAME: - KC_BOOTSTRAP_ADMIN_PASSWORD: - ---- apiVersion: v1 kind: Secret metadata: @@ -668,33 +716,8 @@ hub: crypto: existingSecret: -ecdh-private-key-secret -keycloakClientSecrets: - create: false - -keycloakx: - auth: - existingSecret: -keycloak-auth-credentials - - extraEnv: | - - name: JAVA_OPTS_APPEND - value: >- - -Djgroups.dns.query={{ include "keycloak.fullname" . }}-headless - -Dkeycloak.migration.replacePlaceholders=true - - name: KC_DB_URL_DATABASE - valueFrom: - secretKeyRef: - name: -keycloak-postgres-credentials - key: keycloakDbName - - name: KC_DB_USERNAME - valueFrom: - secretKeyRef: - name: -keycloak-postgres-credentials - key: keycloakDbUser - - name: KC_DB_PASSWORD - valueFrom: - secretKeyRef: - name: -keycloak-postgres-credentials - key: keycloakDbPassword +ui: + nuxtAuthExistingSecret: -node-ui-secret # Secrets kong: @@ -727,12 +750,6 @@ kong-postgresql: userDatabase: existingSecret: -kong-postgres-credentials -keycloak-postgresql: - settings: - existingSecret: -keycloak-postgres-credentials - userDatabase: - existingSecret: -keycloak-postgres-credentials - seaweedfs: s3: existingConfigSecret: -seaweedfs-s3-secret diff --git a/src/guide/deployment/node-security.md b/src/guide/deployment/node-security.md index 0bea6303..454dd724 100644 --- a/src/guide/deployment/node-security.md +++ b/src/guide/deployment/node-security.md @@ -1,7 +1,7 @@ # Security & Operations This page is a technical reference for IT security officers, data protection officers and operators who assess or run -a FLAME Node. It describes how the Node behaves today (Helm chart `flame-node` 1.0.x) and is intended to be referenced +a FLAME Node. It describes how the Node behaves today (Helm chart `flame-node` 1.4.x) and is intended to be referenced from site-specific documents such as an operating concept (Betriebskonzept), data protection concept or information security concept. @@ -24,7 +24,6 @@ When `expose.type` is `ingress` or `gateway`, the chart creates routes on a sing |-------------------------------|---------------------|-------------------------------------------------------------| | `/` | Node UI (3000) | Web interface | | `/api` | Hub Adapter (5000) | Backend called by the Node UI in the browser | -| `/keycloak/` | Keycloak (80) | Node-internal service authentication | | `/logs` (optional, off) | VictoriaLogs (9428) | Log UI – **no authentication**, do not expose publicly | Researchers never interact with the Node. They work exclusively with the Hub. @@ -48,7 +47,8 @@ All outbound connections use HTTPS (TCP 443) unless you configure different endp | `ghcr.io`, `docker.io`, `quay.io` | container runtime (kubelet) | Pulling the Node's own component images | The Hub endpoints are configured under `hub.endpoints` in the values file. The Harbor host is the registry selected for -your node in the Hub. +your node in the Hub. If the Node's component images have to come from an internal mirror instead of the public +registries, see [Image Registry Mirror](./node-installation#image-registry-mirror). ::: warning Proxies The `proxy.*` values only apply to the Node services. Image pulls (analysis images from Harbor and component images) @@ -186,7 +186,6 @@ tamper-evident audit trail is required, forward the logs to the site's SIEM or W |----------------------|------------------|-------------------------------------------------------------------| | PostgreSQL | 8 GiB | Analyses and their status/logs, Hub Adapter events and settings | | Kong PostgreSQL | 2 GiB | Data store configuration (services, routes, consumers) | -| Keycloak PostgreSQL | 8 GiB | Node-internal service clients | | SeaweedFS | 10 GiB | Local results and checkpoints of analyses | | MongoDB | 500 MiB | Message broker state | | VictoriaLogs | 20 GiB | Logs | diff --git a/src/guide/deployment/node-troubleshooting.md b/src/guide/deployment/node-troubleshooting.md index 9b27bd10..14ccee69 100644 --- a/src/guide/deployment/node-troubleshooting.md +++ b/src/guide/deployment/node-troubleshooting.md @@ -62,14 +62,13 @@ hub: `$ kubectl create secret tls tls-secret --key my-flame-node.key --cert my-flame-node.crt` If you need a secret for multiple domain names (e.g. external and internal addresses), you can execute almost the same command but with multiple flags `--key` and `--cert`. -After that add to your custom `my-values.yaml` file the following line inside the ingress block: -`tlsSecretName: tls-secret`. -As the result, your logical block of ingress in the customized values file should look like the following: +After that, reference the secret in the `expose` block of your custom `my-values.yaml` file: ```yaml -ingress: - enabled: true +expose: + type: ingress # or gateway hostname: "https://my-flame-node.org" - tlsSecretName: tls-secret + tls: + secretName: tls-secret ``` @@ -79,19 +78,3 @@ Before installing a node again after it's been deleted, it might be crucial to c because they tend to persist inside kubernetes cluster even after a worker node gets deleted. To do that launch the following command in your shell: `$ kubectl delete pvc --all` - - -## Setting Up User Authorization via Keycloak - -Possible issues: -- Login failure - resulting in the error message `Invalid URI` - -Though this should be done automatically during installation provided that the `ingress.hostname` value is filled out in the `values.yaml` file used during the `helm install` step, if your domain changes or something goes wrong during deployment then follow these steps to update the bundled Keycloak instance with your used URI: - -1. Click on the top right button of your NodeUI web page - "Node Keycloak Admin"; then log in as an admin. -0. Press the button "Manage realms", then go to the correct "flame" realm. Thereafter, you could notice that the part of your URL after '#' is changed, now it shall include a chosen realm name. -0. Go to "Clients" on the left panel and click on the appropriate ClientID for the NodeUI (the default is "node-ui") -0. Scroll down in the node-ui client settings until you'll see the fields "Valid redirect URIs". -0. In this field type the root URL of your node website. For example it could be the following: - - "https://my-flame-node.org/*" - - "http://my-flame-node.org/*" diff --git a/src/guide/faqs/faqs-of-security-privacy.md b/src/guide/faqs/faqs-of-security-privacy.md index 4879b607..1a90920b 100644 --- a/src/guide/faqs/faqs-of-security-privacy.md +++ b/src/guide/faqs/faqs-of-security-privacy.md @@ -12,7 +12,7 @@ Only previously registered participants can access results. 5. **Access Control**: * Role-Based Access Control for different user types. * Identity provider integration (OIDC). - * Keycloak authentication at Hub and Node level. + * Central authentication through the Hub for users, node services and analyses. * Permission-based authorization. 6. **Data Security**: Data remains on local nodes and is not transferred to central Hub. 7. **Standards & Compliance**: diff --git a/src/guide/faqs/faqs-of-troubleshooting.md b/src/guide/faqs/faqs-of-troubleshooting.md index 0a7a6d6e..764a018b 100644 --- a/src/guide/faqs/faqs-of-troubleshooting.md +++ b/src/guide/faqs/faqs-of-troubleshooting.md @@ -8,11 +8,11 @@ For details and an example, see [Node Installation: preparation](/guide/deployme ### How do I access to my Node without a domain name? Set `expose.type` to `none` and leave the hostname blank. -Then port-forward the Node UI, Hub Adapter, and Keycloak services. The Node UI will be available at http://localhost:3000. +Then port-forward the Node UI and Hub Adapter services. The Node UI will be available at http://localhost:3000. For further information, visit [Node Installation: deploying without a Domain Name](/guide/deployment/node-installation.md#deploying-without-a-domain-name). ### How do I expose my Node behind a TLS configuration or a reverse proxy? For a TLS config, create a Kubernetes TLS secret with `kubectl create secret tls tls-secret --key my-flame-node.key --cert my-flame-node.crt`, -then set `tlsSecretName: tls-secret` in the ingress settings. Check more in [Node Troubleshooting:TLS setup](/guide/deployment/node-troubleshooting.md#setting-up-tls-connection). +then set `expose.tls.secretName: tls-secret` in your values file. Check more in [Node Troubleshooting:TLS setup](/guide/deployment/node-troubleshooting.md#setting-up-tls-connection). The reverse-proxy instructions in the troubleshooting page are considered for Airflow; for the FLAME Node’s proxy assumptions, visit [Node Installation](/guide/deployment/node-installation.md). diff --git a/src/public/files/values_no_reverse_proxy_example.yaml b/src/public/files/values_no_reverse_proxy_example.yaml deleted file mode 100644 index 304806d8..00000000 --- a/src/public/files/values_no_reverse_proxy_example.yaml +++ /dev/null @@ -1,20 +0,0 @@ -expose: - type: "ingress" - hostname: https://your.node.ui.domain.com - -hub: - auth: - clientId: - clientSecret: - crypto: - privateKey: | - -----BEGIN PRIVATE KEY----- - myExamplePrivateKey - -----END PRIVATE KEY----- - -keycloak: - auth: - adminUser: admin - adminPassword: admin - - proxyHeaders: "" From 7ef9df8e7788da2e601b090d77285a170b90daf5 Mon Sep 17 00:00:00 2001 From: tada5hi Date: Tue, 1 Dec 2026 12:28:20 +0100 Subject: [PATCH 2/2] docs(node): keep secret credentials out of shell history, note S3 migration --- src/guide/deployment/node-installation.md | 28 ++++++++++++++++++----- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/src/guide/deployment/node-installation.md b/src/guide/deployment/node-installation.md index adde9d15..9cc95c96 100644 --- a/src/guide/deployment/node-installation.md +++ b/src/guide/deployment/node-installation.md @@ -295,12 +295,15 @@ the form of `` and by default is equal to `.cluster.local`. ### Proxy Credentials in a Secret If your proxy URL contains credentials (e.g. `http://user:pass@proxy.example.de:3128`), you can keep them out of your -values file by storing them in an existing Secret with the keys `httpProxy` and `httpsProxy`: +values file by storing them in an existing Secret with the keys `httpProxy` and `httpsProxy`. To keep the credentials +out of your shell history, write each proxy URL into a file named after its key (e.g. with an editor), create the +Secret from the files and delete them afterwards: ```bash -kubectl create secret generic my-proxy-secret \ - --from-literal=httpProxy='http://user:pass@proxy.example.de:3128' \ - --from-literal=httpsProxy='http://user:pass@proxy.example.de:3128' +umask 077 # files created from now on are readable only by you +# write the proxy URL into the files httpProxy and httpsProxy, then: +kubectl create secret generic my-proxy-secret --from-file=httpProxy --from-file=httpsProxy +rm httpProxy httpsProxy ``` ```yaml @@ -464,12 +467,25 @@ storageService: ``` The bucket must already exist and be writable with the given credentials. The Secret must contain the keys -`accessKey` and `secretKey`: +`accessKey` and `secretKey`. As with the proxy credentials, create it from files so the keys do not end up in your shell +history: ```bash -kubectl create secret generic my-s3-secret --from-literal=accessKey=... --from-literal=secretKey=... +umask 077 +# write the access key into the file accessKey and the secret key into the file secretKey, then: +kubectl create secret generic my-s3-secret --from-file=accessKey --from-file=secretKey +rm accessKey secretKey ``` +::: warning Switching an existing node +The objects in the bundled SeaweedFS (bucket `flame`) are not moved to the new bucket. If the node has analyses whose +local results or checkpoints you still need, copy them before you switch: port-forward +`svc/-seaweedfs-all-in-one` (port 8333), copy the bucket with an S3 client (e.g. `rclone sync` or +`aws s3 sync`) using the credentials from the `-seaweedfs-s3-secret` Secret, and compare the object lists +of both buckets before upgrading. The SeaweedFS volume is kept when SeaweedFS is disabled, so the old data stays +available until you delete it. +::: + ### Creating a Storage Class There are multiple reasons why you may want to create a new storage class in your kubernetes cluster such as delineating