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

Proposal for v2. #120

Merged
merged 20 commits into from
Aug 30, 2023
Merged

Proposal for v2. #120

merged 20 commits into from
Aug 30, 2023

Conversation

schmidtw
Copy link
Member

No description provided.

@schmidtw schmidtw requested a review from piccione99 August 28, 2023 23:17
@guardrails
Copy link

guardrails bot commented Aug 29, 2023

⚠️ We detected 1 security issue in this pull request:

Insecure Network Communication (1)
Severity Details Docs
High Title: Plaintext HTTP Server
err := http.ListenAndServe(localAddress, &el) // nolint: gosec
📚

More info on how to fix Insecure Network Communication in Go.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Merging #120 (da3e666) into main (eeffe9c) will increase coverage by 29.57%.
Report is 1 commits behind head on main.
The diff coverage is 97.81%.

@@             Coverage Diff             @@
##             main     #120       +/-   ##
===========================================
+ Coverage   68.23%   97.81%   +29.57%     
===========================================
  Files          12        4        -8     
  Lines         362      548      +186     
===========================================
+ Hits          247      536      +289     
+ Misses        112        9      -103     
  Partials        3        3               
Flag Coverage Δ
unittests 97.81% <97.81%> (+29.57%) ⬆️

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

Files Changed Coverage Δ
listener.go 96.30% <96.30%> (ø)
metrics.go 97.33% <97.33%> (ø)
options.go 100.00% <100.00%> (ø)
token.go 100.00% <100.00%> (ø)

listener.go Show resolved Hide resolved
listener.go Show resolved Hide resolved
schmidtw and others added 6 commits August 29, 2023 11:00
- Add a required url for the webhook url.  The original address that
  appeared to be the right url was the address of the requester, not the
  target.
- Fix a race condition where sending an update to the goroutine can
  cause a deadlock.  Instead of sending the signal inside a mutex, send
  it via a separate go routine that can recover from a panic if the
  channel happens to be closed while it is waiting.
- Fix the token interface so it's just that; using the Token interface
  not the literal token{}.
@schmidtw schmidtw merged commit 2f6ba7f into main Aug 30, 2023
14 checks passed
@schmidtw schmidtw deleted the proposal branch August 30, 2023 23:54
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