Skip to content

Added option to provide db config to ocsp serve#825

Merged
kisom merged 1 commit intocloudflare:masterfrom
johanneslanger:master
Nov 22, 2017
Merged

Added option to provide db config to ocsp serve#825
kisom merged 1 commit intocloudflare:masterfrom
johanneslanger:master

Conversation

@johanneslanger
Copy link
Copy Markdown
Contributor

Hi,

this is to provide the option to specify a db config file for the ocsp serve cli tool. As the existing pull request #757 didn't seem to get updated. This should implement feature request #738.

Please have look and let me know what you think!

Copy link
Copy Markdown
Contributor

@kisom kisom left a comment

Choose a reason for hiding this comment

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

Overall looks good, just two very small things to fix.

Comment thread ocsp/responder.go
return src, nil
}

func NewSourceFromDB(DBConfigFile string) (Source, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This needs a comment (it's what's causing the build to fail right now).

Comment thread cli/ocspserve/ocspserve.go Outdated
var ocspServerUsageText = `cfssl ocspserve -- set up an HTTP server that handles OCSP requests from a file (see RFC 5019)

var ocspServerUsageText = `cfssl ocspserve -- Setup an HTTP server that handles OCSP requests from either a file or directly from a database (see RFC 5019)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You probably didn't mean for this whitespace to go in.

@johanneslanger johanneslanger force-pushed the master branch 2 times, most recently from 7422703 to 33e211e Compare November 22, 2017 08:54
@codecov-io
Copy link
Copy Markdown

codecov-io commented Nov 22, 2017

Codecov Report

Merging #825 into master will increase coverage by 0.02%.
The diff coverage is 72.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #825      +/-   ##
==========================================
+ Coverage   56.17%   56.19%   +0.02%     
==========================================
  Files          76       76              
  Lines        8572     8583      +11     
==========================================
+ Hits         4815     4823       +8     
- Misses       3332     3334       +2     
- Partials      425      426       +1
Impacted Files Coverage Δ
ocsp/responder.go 68.65% <72.72%> (+0.23%) ⬆️

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 9ada30a...2421a4a. Read the comment docs.

@johanneslanger
Copy link
Copy Markdown
Contributor Author

Thanks for the feedback. I've updated accordingly.
Not sure why the MacOS build is failing on Travis-CI. This issue seemed to exist before already!

@kisom
Copy link
Copy Markdown
Contributor

kisom commented Nov 22, 2017

@johanneslanger it's a known issue with the Travis OS X builds.

@kisom kisom merged commit e417826 into cloudflare:master Nov 22, 2017
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