-
Notifications
You must be signed in to change notification settings - Fork 509
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
(DOCSP-32647): Added X509 procedure. #1415
Conversation
e197e24
to
64bd231
Compare
docs/x509-auth.md
Outdated
``` | ||
|
||
1. To deploy the MongoDB Community Kubernetes Operator, copy and paste | ||
the following command and replaces the `<namespace>` variable with the |
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.
the following command and replaces the `<namespace>` variable with the | |
the following command and replace the `<namespace>` variable with the |
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.
why do we have this command 2 times here?
|
||
**Note:** | ||
|
||
- For the `spec.security.tls.certificateKeySecretRef.name` parameter, |
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.
You can also instead link to this doc explaining the structure and more:
mongodb-kubernetes-operator/config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml
Lines 414 to 424 in 60da4dc
certificateKeySecretRef: | |
description: CertificateKeySecret is a reference to a Secret | |
containing a private key and certificate to use for TLS. | |
The key and cert are expected to be PEM encoded and available | |
at "tls.key" and "tls.crt". This is the same format used | |
for the standard "kubernetes.io/tls" Secret type, but no | |
specific type is required. Alternatively, an entry tls.pem, | |
containing the concatenation of cert and key, can be provided. | |
If all of tls.pem, tls.crt and tls.key are present, the | |
tls.pem one needs to be equal to the concatenation of tls.crt | |
and tls.key |
its a certificate that the server not generates but uses I think
docs/x509-auth.md
Outdated
|
||
**Example:** | ||
|
||
``` |
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.
do we have an example we ccan link to instead? otherwise we will have 2 places to keep them up 2 date
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.
LGTM with one clarifying comment.
Operator with X.509 Authentication enabled for the MongoDB Agent and | ||
client. To learn more, see [Install the Operator using Helm](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/install-upgrade.md#install-the-operator-using-helm). | ||
|
||
1. To deploy the MongoDB Community Kubernetes Operator, copy and paste |
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.
Since this command does a bit more than install the operator, I think it's worth mentioning here that this will deploy a sample resource with X509 enabled for both client and agent authentication and that it will also create a sample X509 user and the certificate the user can use to authenticate.
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.
LGTM with a few small typo fixes
docs/x509-auth.md
Outdated
client. | ||
|
||
1. To install the MongoDB Community Kubernetes Operator, see | ||
[Install the Operator using kubectl](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/install-upgrade.md#install-the-operator-using-kubectl) |
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.
[Install the Operator using kubectl](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/install-upgrade.md#install-the-operator-using-kubectl) | |
[Install the Operator using kubectl](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/install-upgrade.md#install-the-operator-using-kubectl). |
docs/x509-auth.md
Outdated
[Install the Operator using kubectl](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/install-upgrade.md#install-the-operator-using-kubectl) | ||
|
||
1. To create a CA, ConfigMap, secrets, issuer, and certificate, see | ||
[Enable External Access to a MongoDB Deployment](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/external_access.md) |
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.
[Enable External Access to a MongoDB Deployment](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/external_access.md) | |
[Enable External Access to a MongoDB Deployment](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/external_access.md). |
docs/x509-auth.md
Outdated
- For the `spec.security.tls.certificateKeySecretRef.name` parameter, | ||
specify a reference to the secret that contains the private key and | ||
certificate to use for TLS. The operator expects the PEM encoded key | ||
and certidicate available at "tls.key" and "tls.crt". Use the same |
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.
Fix: typo
and certidicate available at "tls.key" and "tls.crt". Use the same | |
and certificate available at "tls.key" and "tls.crt". Use the same |
docs/x509-auth.md
Outdated
``` | ||
|
||
1. Create a YAML file for the client certificate. For an example, see | ||
[cert-x509.yaml](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/config/samples/external_access/certy_x509.yaml). |
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.
Fix: typo
[cert-x509.yaml](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/config/samples/external_access/certy_x509.yaml). | |
[cert-x509.yaml](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/config/samples/external_access/cert_x509.yaml). |
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.
LGTM
7ad484d
to
3d17117
Compare
@mircea-cosbuc and @nammn, I added the steps to enable X.509 authentication.
JIRA
All Submissions:
closes #XXXX
in your comment to auto-close the issue that your PR fixes (if such).