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

mTLS Kong Admin API authentication support (#508) #509

Merged
merged 16 commits into from
Jan 19, 2022

Conversation

ludovic-pourrat
Copy link
Contributor

Feature request proposal related to mTLS Kong Admin API authentication support #508

@ludovic-pourrat ludovic-pourrat requested a review from a team as a code owner October 21, 2021 19:51
@CLAassistant
Copy link

CLAassistant commented Oct 21, 2021

CLA assistant check
All committers have signed the CLA.

cmd/root.go Show resolved Hide resolved
cmd/root.go Show resolved Hide resolved
cmd/root.go Show resolved Hide resolved
@ludovic-pourrat
Copy link
Contributor Author

Do you have advises about testing ?

I will update to PR to add coverage.

Copy link
Member

@hbagdi hbagdi left a comment

Choose a reason for hiding this comment

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

This patch is a good addition but I don't think it does what it is supposed to do yet.

cmd/root.go Outdated Show resolved Hide resolved
cmd/root.go Outdated Show resolved Hide resolved
cmd/root.go Outdated Show resolved Hide resolved
cmd/root.go Outdated Show resolved Hide resolved
utils/types.go Outdated Show resolved Hide resolved
cmd/root.go Outdated Show resolved Hide resolved
ludovic-pourrat and others added 7 commits January 14, 2022 20:50
Co-authored-by: Harry <harrybagdi@gmail.com>
Co-authored-by: Harry <harrybagdi@gmail.com>
Co-authored-by: Harry <harrybagdi@gmail.com>
Co-authored-by: Harry <harrybagdi@gmail.com>
Copy link
Member

@hbagdi hbagdi left a comment

Choose a reason for hiding this comment

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

LGTM once these changes are taken care of.
@GGabriele can take care of the merge.

@@ -97,6 +97,10 @@ type KongClientConfig struct {
Timeout int

CookieJarPath string

TLSClientCert string
Copy link
Member

Choose a reason for hiding this comment

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

Unnecessary string conversions. Please change both of these types to []byte and update the code accordingly.

Copy link
Contributor Author

@ludovic-pourrat ludovic-pourrat Jan 19, 2022

Choose a reason for hiding this comment

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

Seem's not consistent with the CA certificate management ?

Copy link
Member

Choose a reason for hiding this comment

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

That should have been a []byte as well but oh well, no biggie.

cmd/root.go Outdated Show resolved Hide resolved
cmd/root.go Outdated Show resolved Hide resolved
cmd/root.go Outdated Show resolved Hide resolved
hbagdi
hbagdi previously approved these changes Jan 19, 2022
@hbagdi
Copy link
Member

hbagdi commented Jan 19, 2022

@ludovic-pourrat Linter unhappy.

@ludovic-pourrat
Copy link
Contributor Author

ludovic-pourrat commented Jan 19, 2022

Oups, too quick sorry for this 😂

@codecov-commenter
Copy link

Codecov Report

Merging #509 (6f62f14) into main (4049365) will decrease coverage by 0.60%.
The diff coverage is 34.56%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #509      +/-   ##
==========================================
- Coverage   51.88%   51.27%   -0.61%     
==========================================
  Files          73       73              
  Lines        7742     7943     +201     
==========================================
+ Hits         4017     4073      +56     
- Misses       3375     3501     +126     
- Partials      350      369      +19     
Impacted Files Coverage Δ
utils/types.go 20.32% <0.00%> (-1.23%) ⬇️
cmd/root.go 53.17% <37.83%> (-2.33%) ⬇️
utils/utils.go 63.33% <0.00%> (-36.67%) ⬇️
cmd/validate.go 15.64% <0.00%> (-4.36%) ⬇️
cmd/common.go 6.22% <0.00%> (-0.06%) ⬇️
dump/dump_konnect.go 35.03% <0.00%> (+6.81%) ⬆️

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 4049365...6f62f14. Read the comment docs.

@hbagdi hbagdi merged commit 1a75133 into Kong:main Jan 19, 2022
AntoineJac pushed a commit that referenced this pull request Jan 23, 2024
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.

5 participants