-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
Split CAA checking out to its own service #1647
Conversation
|
|
You didn't rewrite the imports in the protobuf file. I think we should have a separate PR that just adds a single protobuf file and the godeps imports... #1651 |
?
Also the end goal with splitting out this as it's own service is to create a new repo under the |
First pass comments: Instead of commenting out the lint test in test.sh, remove it. Issuer domain should be an RPC parameter rather than a parameter configured into the CAA service at startup. cAACheckerService is the wrong capitalization for Go, should be caaCheckerService. Create a subdirectory, test/grpc-credentials for the certs and keys, since there will be many of them. The stuff in CAAConfig in config.go should be an RPCConfig struct. |
Also, the section of VA's main that initializes a credentials object based on that struct should be factored out somewhere common, probably a new grpc directory. |
Ready for re-review. |
string name = 1; | ||
string issuerDomain = 2; | ||
} | ||
|
||
message Valid { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
message Result
?
I see no unit tests with the grpc method? |
Ready for re-review. |
Please add a .go file to cmd/caa-checker/proto that just contains a Otherwise this looks great. |
didn't find any problems in the new changes, need to do another |
Ready for re-review. After offline conversation I've added a |
The |
Fixed. |
LGTM |
Missing comment on exported type. |
b/cmd/caa-checker/server_test.go I think the tests should declare a |
The integration test starts the caa-checker server, but it doesn't run the test-client. The test client should probably be in the test/ directory |
In the integration tests the
|
grpc/bcodes.go Error code 16 is already taken. Perhaps we should start at 1000? CodeToProblem should probably define values for most of the predefined codes, like Internal and DataLoss. |
7aaf010
to
d49cb48
Compare
@rolandshoemaker can you resolve the merge conflicts? |
Resolved. |
Which uses gRPC to communicate. Issuer domain, DNS resolver to talk to, DNS timeout, and address to serve the service are all configurable via a YAML config file (although since there are so few maybe just CLI flags could work).
Also a small test client to call the gRPC server. (Still need to copy the tests from the VA that check the CAA loop stuff etc)