Skip to content

credentials: add end-to-end tests for JWT call credentials behavior#8818

Merged
easwars merged 7 commits into
grpc:masterfrom
iamrajiv:8635
Feb 5, 2026
Merged

credentials: add end-to-end tests for JWT call credentials behavior#8818
easwars merged 7 commits into
grpc:masterfrom
iamrajiv:8635

Conversation

@iamrajiv

@iamrajiv iamrajiv commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

This adds e2e style tests to verify that when JWT call credentials (which require transport security) are used with an insecure transport, the RPC fails with a meaningful error as expected per gRFC A97.

Fixes #8635

RELEASE NOTES: none

@codecov

codecov Bot commented Jan 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.28%. Comparing base (ad8bd71) to head (b66c78e).
⚠️ Report is 41 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8818      +/-   ##
==========================================
+ Coverage   83.22%   83.28%   +0.06%     
==========================================
  Files         417      414       -3     
  Lines       32920    32805     -115     
==========================================
- Hits        27397    27321      -76     
+ Misses       4110     4075      -35     
+ Partials     1413     1409       -4     

see 55 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@iamrajiv iamrajiv changed the title feat(e2e): Add end-to-end tests for JWT call credentials behavior test: Add end-to-end tests for JWT call credentials behavior Jan 10, 2026
@iamrajiv iamrajiv changed the title test: Add end-to-end tests for JWT call credentials behavior feat(e2e): Add end-to-end tests for JWT call credentials behavior Jan 10, 2026
@Pranjali-2501 Pranjali-2501 self-requested a review January 21, 2026 12:56
@Pranjali-2501 Pranjali-2501 self-assigned this Jan 21, 2026
@Pranjali-2501 Pranjali-2501 added this to the 1.80 Release milestone Jan 21, 2026

@Pranjali-2501 Pranjali-2501 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@iamrajiv , Thank you for taking the initiative to add the tests.

Comment thread credentials/jwt/jwt_e2e_test.go Outdated
Comment thread credentials/jwt/jwt_e2e_test.go Outdated
@Pranjali-2501 Pranjali-2501 changed the title feat(e2e): Add end-to-end tests for JWT call credentials behavior credentials: add end-to-end tests for JWT call credentials behavior Jan 22, 2026
Signed-off-by: iamrajiv <rajivperfect007@gmail.com>
@easwars easwars assigned Pranjali-2501 and unassigned iamrajiv Jan 22, 2026

@Pranjali-2501 Pranjali-2501 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The test looks good to me. I have minor nits.

Comment thread credentials/jwt/token_file_call_creds_test.go Outdated
Comment thread credentials/jwt/token_file_call_creds_test.go Outdated
Comment thread credentials/jwt/token_file_call_creds_test.go Outdated
Comment thread credentials/jwt/token_file_call_creds_test.go Outdated
Signed-off-by: iamrajiv <rajivperfect007@gmail.com>
@Pranjali-2501 Pranjali-2501 assigned easwars and unassigned iamrajiv Jan 29, 2026
@Pranjali-2501

Copy link
Copy Markdown
Contributor

@easwars , assigning it to you for second review.

Comment thread credentials/jwt/token_file_call_creds_test.go
Comment thread credentials/jwt/token_file_call_creds_test.go Outdated
Comment thread credentials/jwt/token_file_call_creds_test.go Outdated
@easwars

easwars commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

@iamrajiv I'm sorry. I just realized that some of my comments are in direct contradiction to some of the previous comments made as part of the review process and now you are having to do double work.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Feb 3, 2026

Copy link
Copy Markdown

CLA Signed

The committers listed above are authorized under a signed CLA.

@iamrajiv

iamrajiv commented Feb 3, 2026

Copy link
Copy Markdown
Contributor Author

No worries at all, @easwars! I appreciate the thorough review. The feedback to split into focused tests makes sense it's much cleaner and easier to debug now. Thanks for taking the time to review!

@easwars easwars left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes look good to me. Just a bunch of minor nits this time around.

Comment thread credentials/jwt/token_file_call_creds_ext_test.go Outdated
Comment thread credentials/jwt/token_file_call_creds_ext_test.go
Comment thread credentials/jwt/token_file_call_creds_ext_test.go Outdated
Comment thread credentials/jwt/token_file_call_creds_ext_test.go Outdated
Comment thread credentials/jwt/token_file_call_creds_ext_test.go Outdated
Comment thread credentials/jwt/token_file_call_creds_ext_test.go Outdated
Comment thread credentials/jwt/token_file_call_creds_test.go
@iamrajiv iamrajiv requested a review from easwars February 5, 2026 07:13
@easwars easwars merged commit 0f69b6e into grpc:master Feb 5, 2026
14 checks passed
mbissa pushed a commit to mbissa/grpc-go that referenced this pull request Feb 10, 2026
…rpc#8818)

This adds e2e style tests to verify that when JWT call credentials
(which require transport security) are used with an insecure transport,
the RPC fails with a meaningful error as expected per gRFC A97.

Fixes grpc#8635

RELEASE NOTES: none

---------

Signed-off-by: iamrajiv <rajivperfect007@gmail.com>
mbissa pushed a commit to mbissa/grpc-go that referenced this pull request Feb 16, 2026
…rpc#8818)

This adds e2e style tests to verify that when JWT call credentials
(which require transport security) are used with an insecure transport,
the RPC fails with a meaningful error as expected per gRFC A97.

Fixes grpc#8635

RELEASE NOTES: none

---------

Signed-off-by: iamrajiv <rajivperfect007@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an e2e style test to verify meaningful RPC error when using insecure transport creds with A97 JWT call creds

4 participants