This repository was archived by the owner on Jun 23, 2022. It is now read-only.
Repository navigation
*: add support for metrics signer - #24
Merged
Merged
Conversation
hexfusion
force-pushed
the
metrics
branch
3 times, most recently
from
March 20, 2019 16:06
eb5aa56 to
35ddeef
Compare
Contributor
Author
|
@abhinavdahiya updated PTAL. |
| cakey, err := ioutil.ReadFile(c.CAKeyFile) | ||
| switch profile { | ||
| case "EtcdMetric": | ||
| if sc.MetricCAKey != "" && sc.MetricCACert != "" { |
Contributor
There was a problem hiding this comment.
Contributor
Author
There was a problem hiding this comment.
We need this logic (somewhere) because we do not make the metrics flags mandatory. When EtcdMetric profile is passed it means we must make sure to sign using metrics CA. But we also need to make sure they exist. So we could make the flags mandatory but it seems metrics signer might be optional functionality. Does that answer your question?
Contributor
Author
There was a problem hiding this comment.
Other option would be to fallback on the Peer/Server CA if we do not pass a separate CA for metrics.
Contributor
Author
There was a problem hiding this comment.
Added a flag that makes this a little more straightforward.
Contributor
|
This looks lgtm! lets clean up commits to non-wip |
This PR add support for a new profile EtcdMetric which signs CSR requests with a seperate chain of trust provided by the `--metric-cacrt` and `--metric-cakey` flags. Signed-off-by: Sam Batschelet <[email protected]>
Signed-off-by: Sam Batschelet <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for a new profile EtcdMetric which signs CSR requests with a seperate chain of trust provided by the
--metric-cacrtand--metric-cakeyflags.