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

[DOCS][SPARK-620] Update docs for binary secrets in DC/OS 1.11 #282

Merged
merged 5 commits into from
Mar 6, 2018

Conversation

susanxhuynh
Copy link
Contributor

This PR updates the Spark docs regarding the support for binary secrets in DC/OS 1.11.

  • In the section on Binary Secrets, I have incorporated the changes that were made in dcos-commons (INFINITY-2974: Update binary secrets documentation. dcos-commons#2213)
  • In the docs pages, I have removed the __dcos_commons__ prefix from examples, pointing 1.10 users to the above section to read about encoding.
  • In the Walkthroughs, which are not published in docs (you can only read them in Github), I have left the examples as is, with a note that encoding is not necessary in 1.11.

@susanxhuynh susanxhuynh requested review from elezar and NimaVaziri March 6, 2018 16:41
Copy link
Contributor

@elezar elezar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @susanxhuynh. I have to run to another meeting now.

One other comment. We don't use base64-encoded consistently as we usually drop the -. I would say that it should be present when this is an adjective.


**Note:** The secret name **must** be prefixed with `__dcos_base64__`.

When the `some/path/__dcos_base64__mysecret` secret is referenced in your `dcos spark run` command, its base64-decoded
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Is it referenced in the command or in some service specification (as is used here: https://github.com/mesosphere/dcos-commons/blob/6da53edd1ff5392986bef5096a8c7a96470c64eb/docs/pages/_includes/services/overview.md#binary-secrets)? I'm ok leaving it as is though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Spark, it's referenced in the Spark "run" command.

docs/security.md Outdated
@@ -103,7 +125,7 @@ sources (i.e. files and environment variables). For example
```
will place the content of `spark/my-secret-file` into the `PLACEHOLDER` environment variable and the `target-secret-file` file
as well as the content of `spark/my-secret-envvar` into the `SECRET_ENVVAR` and `placeholder-file`. In the case of binary
secrets (tagged with `__dcos_base64__`, for example) the environment variable will still be empty because environment
secrets, the environment variable will still be empty because environment
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I don't think this comma is required.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The wording "environment variables cannot be assigned to binary values" seems in the wrong order (or the "to" should be removed).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will fix it.

docs/security.md Outdated

**Note:** The base64 string of the keystore will probably be much longer than the snippet above, spanning 50 lines or
so.
**DC/OS 1.10 or lower:** Since both stores are binary files, they must be base64-encoded before being placed in the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The DC/OS 1.10 note could be placed after the instructions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good point.

@susanxhuynh susanxhuynh merged commit a96ecdd into master Mar 6, 2018
@susanxhuynh susanxhuynh deleted the sh-spark-620 branch March 6, 2018 17:29
susanxhuynh added a commit that referenced this pull request Mar 21, 2018
* [DOCS][SPARK-620] Updated section on binary secrets for DC/OS 1.11.

* Updated TLS section

* Updated Kerberos doc

* Updated usage examples and walkthroughs.

* Some edits based on Evan's feedback.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants