Skip to content

set dapr-api-token to healthz requests when needed#1145

Merged
halspang merged 2 commits into
dapr:masterfrom
famarting:set-api-token-to-health-reqs
Sep 7, 2023
Merged

set dapr-api-token to healthz requests when needed#1145
halspang merged 2 commits into
dapr:masterfrom
famarting:set-api-token-to-health-reqs

Conversation

@famarting
Copy link
Copy Markdown
Contributor

Description

Implements the changes for #1144

I followed the same pattern that is used in CreateInvokeMethodRequest which is the only other related to the use of the http client being used for the healthz requests.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #1144

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

I think this changes don't require docs or test changes... existing tests and docs already cover this behaviour

@famarting famarting requested review from a team as code owners September 7, 2023 10:30
Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
@famarting famarting force-pushed the set-api-token-to-health-reqs branch from 7bfc18c to e53483c Compare September 7, 2023 10:31
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 7, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.05% ⚠️

Comparison is base (87329f6) 66.47% compared to head (431bd1b) 66.42%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1145      +/-   ##
==========================================
- Coverage   66.47%   66.42%   -0.05%     
==========================================
  Files         171      171              
  Lines        5754     5758       +4     
  Branches      624      626       +2     
==========================================
  Hits         3825     3825              
- Misses       1782     1784       +2     
- Partials      147      149       +2     
Flag Coverage Δ
net6 66.42% <0.00%> (-0.05%) ⬇️
net7 66.42% <0.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/Dapr.Client/DaprClientGrpc.cs 73.56% <0.00%> (-0.35%) ⬇️

☔ View full report in Codecov by Sentry.

📢 Have feedback on the report? Share it here.

@halspang halspang merged commit 99d874a into dapr:master Sep 7, 2023
@famarting famarting deleted the set-api-token-to-health-reqs branch September 8, 2023 09:10
divzi-p pushed a commit to divzi-p/dotnet-sdk that referenced this pull request Dec 10, 2024
Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Signed-off-by: Divya Perumal <diperuma@microsoft.com>
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.

Healthz API calls not using DAPR_API_TOKEN

3 participants