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

chore(file) refactor target config cert omission #622

Merged
merged 1 commit into from
Mar 18, 2022

Conversation

rainest
Copy link
Contributor

@rainest rainest commented Mar 18, 2022

Refactor the target config side of the --skip-ca-certificates implementation to use the dumpConfig setting inside file.Get() rather than stripping CA Certificates from target configuration afterwards.

As-is we'd need to duplicate the logic to strip certificates out of target config downstream (see Kong/kubernetes-ingress-controller@3b926bd#diff-d8590e8687e7807da0cf97910b88e0ddbfc670866e0973a15c56597b99df9244R209-R214) which we don't want--it's simple, but it could potentially diverge. This allows us to use a single implementation internal to deck.

Refactor the target config side of the --skip-ca-certificates
implementation to use the dumpConfig setting inside file.Get() rather
than stripping CA Certificates from target configuration afterwards.
@rainest rainest requested a review from GGabriele March 18, 2022 19:56
@rainest rainest requested a review from a team as a code owner March 18, 2022 19:56
@codecov-commenter
Copy link

Codecov Report

Merging #622 (f3a9629) into main (5016897) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #622      +/-   ##
==========================================
+ Coverage   45.49%   45.53%   +0.03%     
==========================================
  Files          74       74              
  Lines        8462     8462              
==========================================
+ Hits         3850     3853       +3     
+ Misses       4253     4250       -3     
  Partials      359      359              
Impacted Files Coverage Δ
cmd/common.go 6.63% <ø> (+0.08%) ⬆️
file/builder.go 55.93% <100.00%> (+0.12%) ⬆️
file/reader.go 60.81% <100.00%> (+0.53%) ⬆️

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 5016897...f3a9629. Read the comment docs.

@rainest rainest merged commit 39a3d6b into main Mar 18, 2022
@rainest rainest deleted the chore/refactor-ca-skip branch March 18, 2022 20:01
AntoineJac pushed a commit that referenced this pull request Jan 23, 2024
Refactor the target config side of the --skip-ca-certificates
implementation to use the dumpConfig setting inside file.Get() rather
than stripping CA Certificates from target configuration afterwards.
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.

3 participants