-
-
Notifications
You must be signed in to change notification settings - Fork 17
Add support for mutual TLS authentication #703
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
tbantle22
left a comment
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.
Overall looks good, a few comments here and UI feedback in discord
| certificateAuthority?: string; | ||
|
|
||
| clientCert?: string; | ||
|
|
||
| clientKey?: string; |
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.
Seems like this would be better as one type like mtlsAuth?: MutualTlsAuth and then each of these fields in MutualTlsAuth should be required
| @Field({ nullable: true }) | ||
| certificateAuthority?: string; | ||
|
|
||
| @Field({ nullable: true }) | ||
| clientCert?: string; | ||
|
|
||
| @Field({ nullable: true }) | ||
| clientKey?: string; |
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.
Same here and in database.resolver.ts
| import { SetApolloErrorType } from "@lib/errors/types"; | ||
| import { Dispatch, SyntheticEvent } from "react"; | ||
|
|
||
| export type AuthType = "none" | "ssl" | "mtls"; |
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.
Better to use an enum here so you don't have to type cast the string
Addresses #702
Adds this popup to the connection tab:

Then, authenticates the user via mutual TLS.