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

token-auth: add vault support #1545

Conversation

DominikPinsel
Copy link
Contributor

@DominikPinsel DominikPinsel commented Jun 24, 2022

What this PR changes/adds

Extension for token based authentication can now retrieve the authentication key from a vault.

see issue #1537

Why it does that

  • described in issue

Further notes

Linked Issue(s)

Closes #1537

Checklist

  • added appropriate tests?
  • performed checkstyle check locally?
  • added/updated copyright headers?
  • documented public classes/methods?
  • added/updated relevant documentation?
  • added relevant details to the changelog? (skip with label no-changelog)
  • formatted title correctly? (take a look at the CONTRIBUTING and styleguide for details)

Dominik Pinsel dominik.pinsel@daimler.com, Mercedes-Benz Tech Innovation GmbH, legal info/Impressum

@github-actions github-actions bot added this to In progress in Connector Jun 24, 2022
CHANGELOG.md Outdated Show resolved Hide resolved
extensions/api/auth-tokenbased/README.md Outdated Show resolved Hide resolved
extensions/api/auth-tokenbased/README.md Outdated Show resolved Hide resolved
Connector automation moved this from In progress to Review in progress Jun 24, 2022
@florianrusch-zf
Copy link
Contributor

Ah sorry, didn't saw, that the PR is still a draft 🙈

@DominikPinsel
Copy link
Contributor Author

Ah sorry, didn't saw, that the PR is still a draft see_no_evil

Feedback is always welcome :)

@DominikPinsel DominikPinsel force-pushed the feature/1537-support-vault-in-tokenbased-authentication branch 4 times, most recently from ff8897f to 6135138 Compare June 27, 2022 17:27
@DominikPinsel DominikPinsel marked this pull request as ready for review June 27, 2022 20:06
@DominikPinsel DominikPinsel force-pushed the feature/1537-support-vault-in-tokenbased-authentication branch from 6135138 to 0895729 Compare June 28, 2022 07:17
Copy link
Member

@paullatzelsperger paullatzelsperger left a comment

Choose a reason for hiding this comment

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

Couple of minor nits apart from the dependency injection stuff

@codecov-commenter
Copy link

codecov-commenter commented Jun 28, 2022

Codecov Report

Merging #1545 (dddaf84) into main (1648d14) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1545      +/-   ##
==========================================
+ Coverage   67.53%   67.57%   +0.04%     
==========================================
  Files         737      737              
  Lines       16201    16206       +5     
  Branches     1058     1060       +2     
==========================================
+ Hits        10941    10952      +11     
+ Misses       4782     4776       -6     
  Partials      478      478              
Impacted Files Coverage Δ
...or/api/auth/TokenBasedAuthenticationExtension.java 100.00% <100.00%> (+100.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1648d14...dddaf84. Read the comment docs.

@DominikPinsel DominikPinsel force-pushed the feature/1537-support-vault-in-tokenbased-authentication branch 3 times, most recently from f846b82 to a0d6d42 Compare June 28, 2022 08:53
Signed-off-by: Dominik Pinsel <dominik.pinsel@daimler.com>
Co-authored-by: Paul Latzelsperger <43503240+paullatzelsperger@users.noreply.github.com>
@DominikPinsel DominikPinsel force-pushed the feature/1537-support-vault-in-tokenbased-authentication branch from 766fa9b to 4fd308c Compare June 28, 2022 11:11
@paullatzelsperger paullatzelsperger merged commit 9fc75a2 into eclipse-edc:main Jun 28, 2022
Connector automation moved this from Review in progress to Done Jun 28, 2022
ndr-brt pushed a commit that referenced this pull request Jun 28, 2022
Signed-off-by: Dominik Pinsel <dominik.pinsel@daimler.com>
Co-authored-by: Paul Latzelsperger <43503240+paullatzelsperger@users.noreply.github.com>

Co-authored-by: Paul Latzelsperger <43503240+paullatzelsperger@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Connector
  
Done
Development

Successfully merging this pull request may close these issues.

Security: Make it possible to store API-Token-Key in Vault (instead of configuration)
5 participants