Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit 2a7a40a

Browse files
committed
Updated docs, incorporating suggestions from Suzanne.
1 parent 0450943 commit 2a7a40a

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docs/security.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ There are a number of configuration variables relevant to SSL setup. The require
2222
| Variable | Description |
2323
|----------------------------------|-------------------------------------------------|
2424
| `spark.ssl.enabled` | Whether to enable SSL (default: `false`). |
25-
| `spark.ssl.keyStoreBase64` | Base64 encoded blob containing a Java keystore. |
2625
| `spark.ssl.enabledAlgorithms` | Allowed cyphers |
2726
| `spark.ssl.keyPassword` | The password for the private key |
2827
| `spark.ssl.keyStore` | must be server.jks |
@@ -44,14 +43,17 @@ cat keystore.base64
4443

4544
**Note:** The base64 string of the keystore will probably be much longer than the snippet above, spanning 50 lines or so.
4645

47-
Add the stores to your secrets in the DC/OS Secret store, for example if your base64 encoded keystores and truststores are server.jks.base64 and trust.jks.base64, respectively then do the following:
46+
Add the stores to your secrets in the DC/OS secret store. For example, if your base64-encoded keystores
47+
and truststores are server.jks.base64 and trust.jks.base64, respectively, then use the following
48+
commands to add them to the secret store:
4849

4950
```bash
5051
dcos security secrets create /__dcos_base64__truststore --value-file trust.jks.base64
5152
dcos security secrets create /__dcos_base64__keystore --value-file server.jks.base64
5253
```
5354

54-
In this case you're adding two secrets `/truststore` and `/keystore` that you will need to pass to the Spark Driver and Executors. You will need to add the following configurations to your `dcos spark run ` command:
55+
In this case, you are adding two secrets `/truststore` and `/keystore` that you will need to pass to the Spark Driver and Executors.
56+
You must add the following configurations to your `dcos spark run ` command:
5557

5658
```bash
5759

@@ -73,9 +75,13 @@ dcos spark run --verbose --submit-args="\
7375
--class <Spark Main class> <Spark Application JAR> [application args]"
7476
```
7577

76-
Importantly the `spark.mesos.driver.labels` and `spark.mesos.task.labels` must be set as shown. If you upload your secret with another path (e.g. not `/keystore` and `/truststore`) then change the `name` in the value accordingly. Lastly, `spark.mesos.task.labels` must have the `DCOS_SPACE:<dcos_space>` label as well, to have access to the secret. See the [Secrets Documentation about SPACES][13] for more details about Spaces, but usually you want `/spark` as shown.
78+
**Note:** The `spark.mesos.driver.labels` and `spark.mesos.task.labels` must be set as shown. If you
79+
upload your secret with another path (e.g. not `/keystore` and `/truststore`) then change the `name` in
80+
the value accordingly. Lastly, `spark.mesos.task.labels` must have the `DCOS_SPACE:<dcos_space>`
81+
label in order to access the secret. See the [Secrets Documentation about spaces][13] for
82+
more details about spaces. Usually, you will want to set the space label to `/spark`, as shown.
7783

7884

7985
[11]: https://docs.mesosphere.com/1.9/overview/architecture/components/
8086
[12]: http://docs.oracle.com/javase/8/docs/technotes/tools/unix/keytool.html
81-
[13]: https://docs.mesosphere.com/service-docs/spark/v2.0.1-2.2.0-1/run-job/
87+
[13]: https://docs.mesosphere.com/1.10/security/#spaces

0 commit comments

Comments
 (0)