Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/getting-started/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
6 changes: 3 additions & 3 deletions src/guide/admin/analysis-definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -54,8 +54,8 @@ spec:
env:
- name: DATA_SOURCE_TOKEN
value: none_needed
- name: KEYCLOAK_TOKEN
value: <randomly generated token>
- name: AUTHUP_TOKEN
value: <access token of the analysis client>
- name: ANALYSIS_ID
value: <analysis UUID>
- name: PROJECT_ID
Expand Down
243 changes: 138 additions & 105 deletions src/guide/deployment/node-installation.md

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions src/guide/deployment/node-security.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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.
Expand All @@ -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)
Expand Down Expand Up @@ -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 |
Expand Down
27 changes: 5 additions & 22 deletions src/guide/deployment/node-troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```


Expand All @@ -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 "<b>flame</b>" 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 "<b>node-ui</b>")
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/*"
2 changes: 1 addition & 1 deletion src/guide/faqs/faqs-of-security-privacy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**:
Expand Down
4 changes: 2 additions & 2 deletions src/guide/faqs/faqs-of-troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
20 changes: 0 additions & 20 deletions src/public/files/values_no_reverse_proxy_example.yaml

This file was deleted.