Skip to content

Commit f69ade3

Browse files
JuliaMongojwilliams-mongo
authored andcommitted
(DOCSP-39427) Updates to Vault secrets config (#1712)
* (DOCSP-39427) Updates to Vault secrets config * Edits * Edits, to make it clear that the role name is hard-coded
1 parent 867e9dc commit f69ade3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

source/includes/steps-use-vault.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ ref: vault-add-annotations
109109
title: "Add the annotations to the |k8s| deployment file."
110110
content: |
111111
112+
Before running commands in this step, ensure that you have
113+
`created a Vault role <https://developer.hashicorp.com/vault/docs/auth/approle>`__
114+
with the name ``mongodbenterprise``.
115+
112116
Add the following highlighted lines to the ``spec.template.metadata.annotations`` section of your
113117
|k8s-op-short| deployment file. For most users, this file's name is ``mongodb-enterprise.yaml`` or
114118
``mongodb-enterprise-openshift.yaml``.

source/tutorial/secret-storage.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,11 @@ To set the |secret-store|, select one of the following options:
8888
instance.
8989

9090
.. note::
91-
91+
9292
Ensure that |vault-short| is **not** running in `dev mode <https://www.vaultproject.io/docs/concepts/dev-server>`__
9393
and that your |vault-short| installation follows any applicable
9494
`configuration recommendations <https://learn.hashicorp.com/tutorials/vault/production-hardening>`__.
95+
9596
- Enable `Kubernetes Authentication <https://www.vaultproject.io/docs/auth/kubernetes>`__
9697
for the |vault-short| instance. This allows you to authenticate with
9798
|vault-short|.
@@ -100,13 +101,16 @@ To set the |secret-store|, select one of the following options:
100101
|vault-short| into your |k8s| Pods.
101102
- Download the four `Vault policy files <https://github.com/mongodb/mongodb-enterprise-kubernetes/tree/master/vault_policies>`__
102103
for the |k8s-op-short|, MongoDB database, |onprem|, and AppDB.
104+
- `Create a role <https://developer.hashicorp.com/vault/docs/auth/approle>`__
105+
in |vault-short| with the name ``mongodbenterprise``. The configuration
106+
of secrets in the |k8s-op-short| relies on the presence of this
107+
role and its exact name.
103108

104109
Procedure
105110
~~~~~~~~~
106111

107112
.. include:: /includes/steps/use-vault.rst
108113

109-
110114
Next Steps
111115
----------
112116

0 commit comments

Comments
 (0)