Skip to content
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

Update role-mapping-resources.asciidoc #110451

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jalogisch
Copy link
Member

I used the suggestions from #110420 (comment) to make it even clearer.

used the suggestions from #110420 (comment) to be even more clear.
@jalogisch jalogisch added >enhancement >docs General docs changes labels Jul 4, 2024
Copy link
Contributor

github-actions bot commented Jul 4, 2024

Documentation preview:

@elasticsearchmachine
Copy link
Collaborator

@jalogisch please enable the option "Allow edits and access to secrets by maintainers" on your PR. For more information, see the documentation.

@elasticsearchmachine elasticsearchmachine added external-contributor Pull request authored by a developer outside the Elasticsearch team Team:Docs Meta label for docs team v8.16.0 labels Jul 4, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

Copy link
Contributor

@shainaraskas shainaraskas left a comment

Choose a reason for hiding this comment

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

thanks for following up on this! I've added a couple of suggestions to polish this up even further :)

@@ -70,7 +70,11 @@ example, `"username": "jsmith"`.
`groups`::
(array of strings) The groups to which the user belongs. For example, `"groups" : [ "cn=admin,ou=groups,dc=example,dc=com","cn=esusers,ou=groups,dc=example,dc=com ]`.
`metadata`::
(object) Additional metadata for the user. This can include a variety of key-value pairs. When referencing metadata fields in role mapping rules, use the dot notation to specify the key within the metadata object. If the key contains special characters such as parentheses, dots, or spaces, you must escape these characters using backslashes (`\`). For example, `"metadata": { "cn": "John Smith" }`.

(object) Additional metadata for the user is passed as key-value pairs. For example, `"metadata": { "cn": "John Smith" }`.
Copy link
Contributor

Choose a reason for hiding this comment

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

this structure makes it clearer that "passed as kv pairs" clarifies "additional metadata"

Suggested change
(object) Additional metadata for the user is passed as key-value pairs. For example, `"metadata": { "cn": "John Smith" }`.
(object) Additional metadata for the user, passed as key-value pairs. For example, `"metadata": { "cn": "John Smith" }`.

Comment on lines +75 to +76

When referencing metadata fields in role mapping rules, use dot notation to specify the key within the metadata object. If the key contains special characters such as parentheses, dots, or spaces, you must escape these characters using backslashes (`\`).
Copy link
Contributor

@shainaraskas shainaraskas Jul 4, 2024

Choose a reason for hiding this comment

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

I think we can add a + to get this formatted so it's indented (it's clearer the content is all related if it's indented)

Suggested change
When referencing metadata fields in role mapping rules, use dot notation to specify the key within the metadata object. If the key contains special characters such as parentheses, dots, or spaces, you must escape these characters using backslashes (`\`).
+
When referencing metadata fields in role mapping rules, use dot notation to specify the key within the metadata object. If the key contains special characters such as parentheses, dots, or spaces, you must escape these characters using backslashes (`\`).

this is how it currently looks
Screenshot 2024-07-04 at 9 26 32 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs General docs changes >enhancement external-contributor Pull request authored by a developer outside the Elasticsearch team Team:Docs Meta label for docs team v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants