|
| 1 | +--- |
| 2 | +stepnum: 1 |
| 3 | +level: 4 |
| 4 | +ref: have-keys |
| 5 | +title: "Obtain the |onprem| public and private Keys." |
| 6 | +content: | |
| 7 | +
|
| 8 | + Make sure you have the public and private keys for your desired |
| 9 | + |onprem| |svc-api-key|. |
| 10 | +
|
| 11 | +--- |
| 12 | +stepnum: 2 |
| 13 | +level: 4 |
| 14 | +ref: create-vault-secret |
| 15 | +title: "Create the secret in |vault-short|." |
| 16 | +content: | |
| 17 | +
|
| 18 | + Invoke the following |vault-short| command to create your secret, replacing |
| 19 | + the variables with the values in the table: |
| 20 | +
|
| 21 | + .. list-table:: |
| 22 | + :widths: 30 70 |
| 23 | + :header-rows: 1 |
| 24 | +
|
| 25 | + * - Placeholder |
| 26 | + - Description |
| 27 | + |
| 28 | + * - {Namespace} |
| 29 | + - Label that identifies the namespace where you deployed |k8s-op-short|. |
| 30 | +
|
| 31 | + * - {SecretName} |
| 32 | + - Human-readable label that identifies the secret you're creating in |vault-short|. |
| 33 | +
|
| 34 | + * - {PublicKey} |
| 35 | + - The public key for your desired |onprem| |svc-api-key|. |
| 36 | +
|
| 37 | + * - {PrivateKey} |
| 38 | + - The private key for your desired |onprem| |svc-api-key|. |
| 39 | +
|
| 40 | + .. code-block:: sh |
| 41 | +
|
| 42 | + vault kv put secret/data/mongodbenterprise/operator/{Namespace}/{SecretName} publicKey={PublicKey} privateKey={PrivateKey} |
| 43 | +
|
| 44 | + The path in this command is the default path. You can replace ``mongodbenterprise/operator`` with |
| 45 | + your base path if you customized your |k8s-op-short| configuration. |
| 46 | +
|
| 47 | +--- |
| 48 | +stepnum: 3 |
| 49 | +level: 4 |
| 50 | +ref: verify-vault-secret |
| 51 | +title: "Verify the |vault-short| secret creation was successful." |
| 52 | +content: | |
| 53 | +
|
| 54 | + Invoke the following |vault-short| command to verify your secret, replacing |
| 55 | + the variables with the values in the following table: |
| 56 | +
|
| 57 | + .. list-table:: |
| 58 | + :widths: 30 70 |
| 59 | + :header-rows: 1 |
| 60 | +
|
| 61 | + * - Placeholder |
| 62 | + - Description |
| 63 | + |
| 64 | + * - {Namespace} |
| 65 | + - Label that identifies the namespace where you deployed |k8s-op-short|. |
| 66 | +
|
| 67 | + * - {SecretName} |
| 68 | + - Human-readable label that identifies the secret you're creating in |vault-short|. |
| 69 | +
|
| 70 | + .. code-block:: sh |
| 71 | +
|
| 72 | + vault kv get secret/data/mongodbenterprise/operator/{Namespace}/{SecretName} |
| 73 | +
|
| 74 | + This command returns a secret description in the shell: |
| 75 | +
|
| 76 | + .. code-block:: sh |
| 77 | +
|
| 78 | + ====== Metadata ====== |
| 79 | + Key Value |
| 80 | + --- ----- |
| 81 | + created_time 2021-12-15T17:20:22.985303Z |
| 82 | + deletion_time n/a |
| 83 | + destroyed false |
| 84 | + version 1 |
| 85 | +
|
| 86 | + ======= Data ======= |
| 87 | + Key Value |
| 88 | + --- ----- |
| 89 | + publicKey {PublicKey} |
| 90 | + privateKey {PrivateKey} |
| 91 | +... |
0 commit comments