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

Add useragent for OIDC assume role #929

Merged
merged 1 commit into from
Aug 20, 2024
Merged

Add useragent for OIDC assume role #929

merged 1 commit into from
Aug 20, 2024

Conversation

JacksonTian
Copy link
Contributor

No description provided.

@JacksonTian JacksonTian requested a review from xiahuai as a code owner July 23, 2024 15:23
@codecov-commenter
Copy link

codecov-commenter commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.16%. Comparing base (abfb8b9) to head (31a7134).

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #929   +/-   ##
=========================================
  Coverage     90.16%   90.16%           
  Complexity     1649     1649           
=========================================
  Files           123      123           
  Lines          4736     4737    +1     
  Branches        536      536           
=========================================
+ Hits           4270     4271    +1     
  Misses          342      342           
  Partials        124      124           

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

@JacksonTian JacksonTian force-pushed the oidc branch 2 times, most recently from d047a7a to 6afb189 Compare July 23, 2024 15:56
@@ -147,6 +148,7 @@ private String invokeAssumeRoleWithOIDC() throws ClientException {
httpRequest.setHttpContentType(FormatType.FORM);
httpRequest.setSysConnectTimeout(1000);
httpRequest.setSysReadTimeout(3000);
httpRequest.putHeaderParameter("UserAgent", UserAgentConfig.resolve(null, null));
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里要不要加上credentials的标识,以免和 API request 混合

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这个 API 本身只能用来 OIDC 角色扮演,不影响其它 API request

@JacksonTian JacksonTian merged commit ce982be into master Aug 20, 2024
3 of 4 checks passed
@JacksonTian JacksonTian deleted the oidc branch August 20, 2024 02:13
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.

3 participants