-
Notifications
You must be signed in to change notification settings - Fork 6
feat(oauth): Oauth2 proxy for swagger UI docs page #959
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Joseph Ware <[email protected]>
Co-authored-by: Joseph Ware <[email protected]>
helm/blueapi/values.yaml
Outdated
ingress: | ||
enabled: true | ||
hosts: | ||
- p46-blueapi.diamond.ac.uk | ||
annotations: | ||
nginx.ingress.kubernetes.io/proxy-buffer-size: "8k" | ||
path: / | ||
pathType: Prefix |
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.
ingress: | |
enabled: true | |
hosts: | |
- p46-blueapi.diamond.ac.uk | |
annotations: | |
nginx.ingress.kubernetes.io/proxy-buffer-size: "8k" | |
path: / | |
pathType: Prefix | |
ingress: | |
path: / | |
pathType: Prefix |
helm/blueapi/values.yaml
Outdated
oidc: | ||
well_known_url: https://authn.diamond.ac.uk/realms/master/.well-known/openid-configuration | ||
client_id: blueapi |
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.
oidc: | |
well_known_url: https://authn.diamond.ac.uk/realms/master/.well-known/openid-configuration | |
client_id: blueapi | |
# oidc: | |
# well_known_url: https://authn.diamond.ac.uk/realms/master/.well-known/openid-configuration | |
# client_id: blueapi |
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.
Then add documentation on how to enable authentication, i.e. enable this and add
oauth2-proxy:
ingress:
enabled: true
hosts:
- p46-blueapi.diamond.ac.uk
to your config
And provide a SealedSecret with the client-secret?
helm/blueapi/values.yaml
Outdated
clientID: blueapi | ||
clientSecret: | ||
oidcConfig: | ||
insecureSkipNonce: true |
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.
Did you decide you didn't need this?
helm/blueapi/values.yaml
Outdated
skip_provider_button = true | ||
silence_ping_logging=true | ||
cookie_refresh="1m" | ||
cookie_expire="30m" |
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.
cookie_expire="30m" | |
cookie_expire="30m" | |
upstreams = [ "{{ include "blueapi.fullname" . }}:{{ .Values.service.port }}" ] |
helm/blueapi/values.yaml
Outdated
upstreams: | ||
- id: blueapi | ||
path: / | ||
uri: http://blueapi.p46-beamline:80 |
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.
upstreams: | |
- id: blueapi | |
path: / | |
uri: http://blueapi.p46-beamline:80 |
app.swagger_ui_init_oauth = { | ||
"clientId": "NOT_SUPPORTED", | ||
} |
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.
Is this the standard way to disable this? Can't we just not generate that part of the UI?
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.
This is generated from the openapi Yaml spec ...I will need to remove the security from them to remove the pad locks ...
I can do that but I don't think it is a good idea to change the openapi yaml
No description provided.