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

Try a different approach to determining what certs to use #37

Merged
merged 2 commits into from Jan 16, 2019

Conversation

binford2k
Copy link
Member

Just check to see if the files exist and trust that they will on the CA
server and not the compile masters.

I'm just putting this up there to experiment with it. I'm not expecting
to merge it right away.

Maybe fixes #25

@binford2k binford2k closed this Dec 19, 2018
@binford2k binford2k reopened this Dec 19, 2018
@binford2k binford2k closed this Dec 19, 2018
@binford2k binford2k reopened this Dec 19, 2018
@binford2k binford2k closed this Dec 19, 2018
@binford2k binford2k reopened this Dec 19, 2018
@binford2k binford2k closed this Dec 19, 2018
@binford2k binford2k reopened this Dec 19, 2018
@binford2k binford2k closed this Dec 19, 2018
@binford2k binford2k reopened this Dec 19, 2018
@binford2k binford2k closed this Dec 19, 2018
@binford2k binford2k reopened this Dec 19, 2018
@binford2k binford2k closed this Dec 19, 2018
@binford2k binford2k reopened this Dec 19, 2018
@binford2k binford2k closed this Dec 19, 2018
@binford2k binford2k reopened this Dec 19, 2018
Copy link
Contributor

@danielparks danielparks left a comment

Choose a reason for hiding this comment

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

This seems reasonable. I think it might mess up if the node was once a CA, but that seems like an uncommon problem.

That said, I'm pretty sure I'm missing some important stuff. I don't really understand why you need to special case the CA — if this code is running on the CA, then the CA must be a compile master. Why can't it treat the CA like any other compile master?

Also, I don't think this will fix @frizop's comment
#25 (comment) where it gives a “Need a node name to encrypt” error. That error is generated before any of this code is run.

Like I said, though, I missing something important. :)

Just check to see if the files exist and trust that they will on the CA
server and not the compile masters.

I'm just putting this up there to experiment with it. I'm not expecting
to merge it right away.

Maybe fixes #25
The compile masters and the CA master will always have the proper certs
to encrypt *as this master*, so let's just simplify that logic and
always use that set of certificates.
@binford2k
Copy link
Member Author

@danielparks yeah, you're right. I think there used to be a reason for treating them differently, but I didn't document it and I can't find a reason for doing so any more. This drastically simplifies, and all the tests pass, including manual acceptance testing. Thoughts?

@binford2k binford2k merged commit cb5e0e8 into master Jan 16, 2019
@binford2k binford2k deleted the just_look_for_files branch April 29, 2020 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The logic to determine whether we're a CA is inflexible.
3 participants