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

op-service: Add optional headers to the signer client #12407

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

trianglesphere
Copy link
Contributor

Description

This adds a new flag to the signer client HEADERS which will provide a set of headers to pass to the remote signer.

This also modifies the TLSConfig to better handle enabling TLS. Previously TLSConfig.TLSEnabled() would alway return true because it would default every value during ReadCLIConfig. Now TLSConfig.TLSEnabled() only returns true if any of the flags are set.

Tests

Unit tests for flag parsing.

Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.14%. Comparing base (6d36d68) to head (d04c899).
Report is 14 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #12407      +/-   ##
===========================================
- Coverage    64.32%   64.14%   -0.19%     
===========================================
  Files           52       52              
  Lines         4348     4348              
===========================================
- Hits          2797     2789       -8     
- Misses        1376     1385       +9     
+ Partials       175      174       -1     
Flag Coverage Δ
cannon-go-tests 64.14% <ø> (-0.19%) ⬇️

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

see 1 file with indirect coverage changes

op-service/signer/cli.go Outdated Show resolved Hide resolved
op-service/tls/cli.go Show resolved Hide resolved
@tynes tynes enabled auto-merge October 11, 2024 20:46
@tynes tynes added this pull request to the merge queue Oct 11, 2024
Merged via the queue into ethereum-optimism:develop with commit 1222534 Oct 11, 2024
58 checks passed
@trianglesphere trianglesphere deleted the signer-headers branch October 11, 2024 23:05
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.

2 participants