-
Notifications
You must be signed in to change notification settings - Fork 34
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
Issue 1131 | Drop keycloak #1132
Conversation
Before merging, I'd like to test this against local Kubernetes too... (I'll run on kind once the PR is out of draft) |
I had almost the same so I'm fine with this PR, @IceKhan13 . What I would do is simplify it a bit, let keycloak stuff and remove everything in another PR, what do you think? |
We have tons of configurations related with keycloak that it will be better review in apart from this I think. |
Do you mean configurations in helm charts?
most of the changes in just notebooks diffs :) I do not mind if you close this PR and push your changes, I was just sitting in a meeting and decided to take this one. |
Mostly yeah, but around applications too. Something that we can clean in the next PR.
Yeah, no it's fine. Just to mention in case you were thinking to include to remove all the configuration stuff. That maybe we can let it for another PR. |
Should we remove this from |
Oh, let me remove from client to. YOu are right. |
Got an error when running on Kind:
(did a edit: error was when running this block: serverless = ServerlessProvider(
token=os.environ.get("GATEWAY_TOKEN", "awesome_token"),
host=os.environ.get("GATEWAY_HOST", "http://localhost:8010"),
)
serverless |
Did you change the authentication mechanism @psschwei ? Now auth mechanism must be |
No, wasn't expecting that I'd need to (I assumed it would work out of the box)... let me try again |
hmmm... still fails with {
"name": "SETTINGS_AUTH_MECHANISM",
"value": "mock_token"
}, |
@psschwei did you rebuild gateway image? |
yes, built from source |
envvar is being picked up inside the gateway pod... I have no name!@gateway-7b444889b6-dkjh8:/usr/src/app$ python
Python 3.9.16 (main, May 23 2023, 14:24:31)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.environ.get("SETTINGS_AUTH_MECHANISM")
'mock_token'
>>> |
🤔 |
looks like the keycloak pod is still there... let me try deleting that (or maybe I should wait for the helm config update in the next PR...) |
keycloak chart should not affect it by any means |
does the postgres username matter? looks like I was using |
nope, it does not matter |
Helm should continue being the same with the difference in the auth.mechanism value I think 🤔 |
Ok, I figured out the error... for reference, this was the code block: serverless = ServerlessProvider(
token=os.environ.get("GATEWAY_TOKEN", "awesome_token"),
host=os.environ.get("GATEWAY_HOST", "http://localhost:8010"),
)
serverless Can anyone spot the problem? 😄 |
Damn port? |
You win 😆 |
ref: #1133 |
Tested it with rancher locally too. Got the same error like Paul :) ref above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worked for me on Kubernetes, code changes look good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks for me good too. Tomorrow I can upload helm configuration.
Perfect! |
Summary
Drop keycloak
Details and comments
Closes #1131