# Transport Layer Security If you're running Argo Server you have three options with increasing transport security (note - you should also be running [authentication](argo-server.md#auth-mode)): ## Default configuration Argo image/deployment defaults to [Encrypted](#encrypted) with a self-signed certificate which expires after 365 days. ## Plain Text Recommended for: development. Everything is sent in plain text. Start Argo Server with the --secure=false (or `ARGO_SECURE=false`) flag, e.g.: ```bash export ARGO_SECURE=false argo server --secure=false ``` To secure the UI you may front it with a HTTPS proxy. ## Encrypted Recommended for: development and test environments. You can encrypt connections without any real effort. Start Argo Server with the `--secure` flag, e.g.: ```bash argo server --secure ``` It will start with a self-signed certificate that expires after 365 days. Run the CLI with `--secure` (or `ARGO_SECURE=true`) and `--insecure-skip-verify` (or `ARGO_INSECURE_SKIP_VERIFY=true`). ```bash argo --secure --insecure-skip-verify list ``` ```bash export ARGO_SECURE=true export ARGO_INSECURE_SKIP_VERIFY=true argo --secure --insecure-skip-verify list ``` Tip: Don't forget to update your readiness probe to use HTTPS. To do so, edit your `argo-server` Deployment's `readinessProbe` spec: ```yaml readinessProbe: httpGet: scheme: HTTPS ``` ### Encrypted and Verified Recommended for: production environments. Run your HTTPS proxy in front of the Argo Server. You'll need to set-up your certificates (this is out of scope of this documentation). Start Argo Server with the `--secure` flag, e.g.: ```bash argo server --secure ``` As before, it will start with a self-signed certificate that expires after 365 days. Run the CLI with `--secure` (or `ARGO_SECURE=true`) only. ```bash argo --secure list ``` ```bash export ARGO_SECURE=true argo list ``` ### Mutual TLS When Argo Server or its proxy requires mutual TLS, pass `--client-certificate` and `--client-key` together. Use `--certificate-authority` to trust the certificate authority that signed the server certificate. The flags work with both the gRPC and HTTP/1 clients, including artifact downloads with `argo cp`. ```bash argo --argo-server argo.example.com:443 \ --secure \ --certificate-authority ca.crt \ --client-certificate client.crt \ --client-key client.key \ list ``` Client certificates and certificate authorities configured in a kubeconfig context are used for direct Kubernetes connections but are not automatically used in server mode. Pass the three flags explicitly when connecting through Argo Server. Unlike `--secure` and `--insecure-skip-verify`, these flags do not have `ARGO_*` environment variable equivalents. ### TLS Min Version Set `TLS_MIN_VERSION` to be the minimum TLS version to use. This is v1.2 by default. This must be one of these [int values](https://golang.org/pkg/crypto/tls/). | Version | Value | |---|---| | v1.0 | 769 | | v1.1 | 770 | | v1.2 | 771 | | v1.3 | 772 |