-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth2 login process is not stateless #13081
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
Note, this is running v1.10.14 with flask appbuilder 3.1.1 in web instance
When the secret key is not specified and is randomly generated, each web instance has a different secret key which breaks the login process when the serving pod is switched. |
That is the correct fix, and not a work around -- it is you something you should do in your config. Does that fix the problem, if so then the only change we need to make is likely a doc one. |
Yes this fix resolves the problem. Happy to make a doc change in the OAuth2 page and PR. |
Yes please @whatnick ! |
This potentially can be addressed like how airflow-helm-chart handles fernet key airflow/chart/templates/secrets/fernetkey-secret.yaml Lines 21 to 41 in 66e7382
|
Also a good idea |
Apache Airflow version: 1.10.14
Kubernetes version (if you are using kubernetes) (use
kubectl version
): Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.15-eks-ad4801", GitCommit:"ad4801fd44fe0f125c8d13f1b1d4827e8884476d", GitTreeState:"clean", BuildDate:"2020-10-20T23:27:12Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}Environment:
uname -a
): N/AWhat happened:
Cognito login does not work if second request is not handled by first pod receiving access_token headers.
What you expected to happen:
Logging in via Cognito OAuth2 mode / Code should work via any pod.
How to reproduce it:
Override
webserver_config.py
with the following code:Anything else we need to know:
There are 3 possible work arounds using infrastructure changes instead of airflow-web code changes.
The text was updated successfully, but these errors were encountered: