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

Improve ca.Provisioner #80

Merged
merged 6 commits into from
Jun 24, 2019
Merged

Improve ca.Provisioner #80

merged 6 commits into from
Jun 24, 2019

Conversation

maraino
Copy link
Contributor

@maraino maraino commented Jun 21, 2019

Description

The type ca.Provisioner is used by some projects to generate tokens for a JWK provisioner. This PR adds some flexibility in the construction so it does depends on files, and []byte can be used to set the root CA.

The intention of this change is to make it usable from cert-manager.
Config package will panic if it cannot create the step path folder.
@maraino maraino requested a review from dopey June 21, 2019 20:30
@codecov-io
Copy link

codecov-io commented Jun 21, 2019

Codecov Report

Merging #80 into master will decrease coverage by 11.17%.
The diff coverage is 72.3%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #80       +/-   ##
===========================================
- Coverage   79.65%   68.47%   -11.18%     
===========================================
  Files          36       39        +3     
  Lines        3038     3607      +569     
===========================================
+ Hits         2420     2470       +50     
- Misses        461      982      +521     
+ Partials      157      155        -2
Impacted Files Coverage Δ
ca/client.go 69.6% <56.75%> (+0.66%) ⬆️
ca/provisioner.go 85.56% <92.85%> (+7.78%) ⬆️
autocert/controller/client.go 0% <0%> (ø)
autocert/controller/main.go 4.38% <0%> (ø)
autocert/controller/provisioner.go 0% <0%> (ø)

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 5bc867a...44e85b5. Read the comment docs.

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