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

feat: remove arrange #221

Merged
merged 1 commit into from
Nov 10, 2023
Merged

Conversation

denopink
Copy link
Contributor

@denopink denopink commented Nov 1, 2023

feat: remove arrange

basculehttp/provide_test.go Outdated Show resolved Hide resolved
Copy link

guardrails bot commented Nov 1, 2023

All previously detected findings have been fixed. Good job! 👍🎉

We will keep this comment up-to-date as you go along and notify you of any security issues that we identify.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

@denopink denopink force-pushed the denopink/feat/remove-arrange-and-addgoschtalt branch from 6fd3a42 to 7ef3c1b Compare November 2, 2023 00:06
Copy link
Contributor

@johnabass johnabass left a comment

Choose a reason for hiding this comment

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

This looks fine, but we should do another issue/PR to remove goschalt completely. bascule should really just take a dependency on a bascule.Config object, and unfold itself accordingly. The application would be responsible for obtaining a bascule.Config in whatever way it likes, whether goschtalt or some other means.

Comment on lines -105 to -127
"everything included": basicAuth + bearerAuth + `
capabilities:
type: "enforce"
prefix: "test"
acceptAllMethod: "all"
endpointBuckets:
- "aaaa\\b"
- "bbbn/.*\\b"
`,
"capabilities monitoring": basicAuth + bearerAuth + `
capabilities:
type: "monitor"
prefix: "test"
acceptAllMethod: "all"
endpointBuckets:
- "aaaa\\b"
- "bbbn/.*\\b"
`,
"no capability check": basicAuth + bearerAuth,
"basic only": basicAuth,
"bearer only": bearerAuth,
"empty config": ``,
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@johnabass do we still want to support all these use cases?

@denopink denopink changed the title feat: remove arrange and add goschtalt feat: remove arrange Nov 2, 2023
@denopink denopink force-pushed the denopink/feat/remove-arrange-and-addgoschtalt branch from 89bba11 to c7f9151 Compare November 2, 2023 17:53
Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Merging #221 (c7f9151) into main (ea8edf8) will decrease coverage by 0.13%.
Report is 11 commits behind head on main.
The diff coverage is 68.75%.

@@            Coverage Diff             @@
##             main     #221      +/-   ##
==========================================
- Coverage   85.68%   85.56%   -0.13%     
==========================================
  Files          36       36              
  Lines        1488     1482       -6     
==========================================
- Hits         1275     1268       -7     
- Misses        195      196       +1     
  Partials       18       18              
Flag Coverage Δ
unittests 85.56% <68.75%> (-0.13%) ⬇️

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

Files Coverage Δ
basculechecks/capabilitiesmap.go 100.00% <ø> (ø)
basculechecks/capabilitiesvalidator.go 100.00% <ø> (ø)
basculehttp/basicTokenFactory.go 96.15% <ø> (-0.28%) ⬇️
jws.go 22.58% <ø> (ø)
basculehttp/bearerTokenFactory.go 93.33% <83.33%> (-1.67%) ⬇️
attributes.go 93.54% <75.00%> (-6.46%) ⬇️
basculechecks/provide.go 39.13% <0.00%> (+3.13%) ⬆️

@denopink denopink merged commit b18a925 into main Nov 10, 2023
14 of 16 checks passed
@denopink denopink deleted the denopink/feat/remove-arrange-and-addgoschtalt branch November 10, 2023 16:38
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.

None yet

3 participants