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

docs: fix incorrect decoding command in developer documentation #4241

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

juwon8891
Copy link
Contributor

What type of PR is this?

docs: fix incorrect decoding command in developer documentation

What this PR does / why we need it:
The developer guide documentation contains an incorrect command for decoding JWT tokens. The current example includes an unnecessary -argument in the base64 command. The correct version omits this extra argument, ensuring the command runs properly. This PR fixes the issue to prevent confusion when following the example.

Which issue(s) this PR fixes:

Fixes #4240

@juwon8891 juwon8891 requested a review from a team as a code owner September 14, 2024 09:15
Copy link

codecov bot commented Sep 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.64%. Comparing base (c127b37) to head (a1cbc09).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4241      +/-   ##
==========================================
- Coverage   65.69%   65.64%   -0.05%     
==========================================
  Files         197      197              
  Lines       23540    23540              
==========================================
- Hits        15464    15453      -11     
- Misses       6968     6977       +9     
- Partials     1108     1110       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -91,7 +91,7 @@ A `401` HTTP response code should be returned.
Get the JWT used for testing request authentication:

```shell
TOKEN=$(curl https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/test.jwt -s) && echo "$TOKEN" | cut -d '.' -f2 - | base64 --decode -
Copy link
Contributor

Choose a reason for hiding this comment

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

did you test the new command on linux?

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, this command works on Linux. In fact, the existing command only works on Linux, not on mac. The changed command works both.

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for clarifying.

@shawnh2 shawnh2 merged commit 1fbbe98 into envoyproxy:main Sep 14, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect decoding command in developer guide
3 participants