-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HADOOP-18320. Fixes typos in Delegation Tokens documentation. #4499
HADOOP-18320. Fixes typos in Delegation Tokens documentation. #4499
Conversation
🎊 +1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ahmarsuhail, looking good. I have a few some comments where we can improve further.
Can you create a JIRA for this work and update the title to include the ID and be specific to S3A?
hadoop-tools/hadoop-aws/src/site/markdown/tools/hadoop-aws/delegation_tokens.md
Outdated
Show resolved
Hide resolved
Tokens are opaque to clients. Clients simply get a byte array | ||
of data which they must provide to a service when required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are touching this line, add a line break before "Clients simply" to keep sentence diffs independent in future.
hadoop-tools/hadoop-aws/src/site/markdown/tools/hadoop-aws/delegation_tokens.md
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-aws/src/site/markdown/tools/hadoop-aws/delegation_tokens.md
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-aws/src/site/markdown/tools/hadoop-aws/delegation_tokens.md
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-aws/src/site/markdown/tools/hadoop-aws/delegation_tokens.md
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-aws/src/site/markdown/tools/hadoop-aws/delegation_tokens.md
Show resolved
Hide resolved
hadoop-tools/hadoop-aws/src/site/markdown/tools/hadoop-aws/delegation_tokens.md
Outdated
Show resolved
Hide resolved
Issued tokens may be included in job submissions, passed to running applications, | ||
etc. This token is specific to an individual bucket; all buckets which a client | ||
wishes to work with must have a separate delegation token issued. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find this confusing in the context of delegated role tokens, where the token is literally specific to an individual bucket.
Can we make this clearer while we are editing this paragraph?
Issued tokens may be included in job submissions, passed to running applications, | |
etc. This token is specific to an individual bucket; all buckets which a client | |
wishes to work with must have a separate delegation token issued. | |
Issued tokens may be included in job submissions, passed to running applications, | |
etc. | |
Delegation tokens are specific to an S3A filesystem. | |
Each filesystem a client wishes to work with must have a separate delegation token issued, | |
regardless of the delegation token variant. |
Is it correct to describe them specific to a filesystem rather than the bucket?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline - will leave it as is for now as the suggestion wouldn't be making it clearer.
Co-authored-by: Daniel Carl Jones <danny@danielcarl.info>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 (non-binding), thanks for spending the time on these docs
🎊 +1 overall
This message was automatically generated. |
@mehakmeet / @mukund-thakur I'd made some minor updates to the delegation tokens documentation a while ago, would you be able to take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for taking this up. Got a chance to read the whole doc.
Added a few comments.
@@ -108,7 +108,7 @@ password-protected data opaque to clients; they contain the secrets needed | |||
to access the relevant S3 buckets and associated services. | |||
|
|||
They are obtained by requesting a delegation token from the S3A filesystem client. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why github not allowing me to comment at L82.
Delegation "Token" support is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L106 -> These S3A Delegation Tokens are special in "a way" that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
l120 : It -> it.
@@ -353,10 +352,10 @@ it is authenticated with; the role token binding will fail. | |||
|
|||
When the AWS credentials supplied to the Session Delegation Token binding | |||
through `fs.s3a.aws.credentials.provider` are themselves a set of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something is off here, maybe "they themselves are part of session credentials."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems fine to me as is. Maybe removing the themselves entirely would help, so it becomes "through fs.s3a.aws.credentials.provider
are a set of", but personally feel it's clearer as is.
thanks for taking a look @mukund-thakur, have made the suggested changes. |
🎊 +1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1
Description of PR
Noticed some typos while reading through the documentation, this PR fixes those.
How was this patch tested?
Not required