smythie86 opened a new issue #17398:
URL: https://github.com/apache/airflow/issues/17398
<!--
Welcome to Apache Airflow! For a smooth issue process, try to answer the
following questions.
Don't worry if they're not all applicable; just try to include what you can
:-)
If you need to include code snippets or logs, please put them in fenced code
blocks. If they're super-long, please use the details tag like
<details><summary>super-long log</summary> lots of stuff </details>
Please delete these comment blocks before submitting the issue.
-->
<!--
IMPORTANT!!!
PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
Please complete the next sections or the issue will be closed.
These questions are the first thing we need to know to understand the
context.
-->
**Apache Airflow version**: 2.1.2
**Airflow Helm Chart version: 1.1.0
**Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3",
GitCommit:"ca643a4d1f7bfe34773c74f79527be4afd95bf39", GitTreeState:"clean",
BuildDate:"2021-07-15T20:58:09Z", GoVersion:"go1.16.5", Compiler:"gc",
Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.15",
GitCommit:"73dd5c840662bb066a146d0871216333181f4b64", GitTreeState:"clean",
BuildDate:"2021-01-13T13:14:05Z", GoVersion:"go1.13.15", Compiler:"gc",
Platform:"linux/amd64"}
**What happened**: I set webserver.replicas to 2 in my helm chart, and then
when I attempt to login, I get an error :
Bad Request
The CSRF session token is missing.
<!-- (please include exact error messages if you can) -->
**What you expected to happen**: I expect to be able to login successfully.
<!-- What do you think went wrong? -->
**How to reproduce it**: Install the helm chart, and set webserver.replicas
to 2. Then attempt to login to the UI.
<!---
As minimally and precisely as possible. Keep in mind we do not have access
to your cluster or dags.
If you are using kubernetes, please attempt to recreate the issue using
minikube or kind.
## Install minikube/kind
- Minikube https://minikube.sigs.k8s.io/docs/start/
- Kind https://kind.sigs.k8s.io/docs/user/quick-start/
If this is a UI bug, please provide a screenshot of the bug or a link to a
youtube video of the bug in action
You can include images using the .md style of

To record a screencast, mac users can use QuickTime and then create an
unlisted youtube video with the resulting .mov file.
--->
**Anything else we need to know**:
I was able to get this working by also setting the webserverSecretKey in the
values.yaml file of the helm chart as well. But I think the helm chart should
set the key to the same value for each replica of the webserver, or
alternatively, the documentation should make it clear that the key needs to be
set when setting webserver.replicas to more than 1.
<!--
How often does this problem occur? Once? Every time etc?
Any relevant logs to include? Put them here in side a detail tag:
<details><summary>x.log</summary> lots of stuff </details>
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]