-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Add certs plugin for certificate management #1414
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
Conversation
plugins/certs/commands
Outdated
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.
working on implementation now
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.
Please update the docs as well to illustrate how this will work.
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.
For sure. I meant to add a task to redo the entirety of the docs for this; including the "public functions convention.
509e0ce to
e01890f
Compare
|
Output of |
|
@josegonzalez this is ready to be banged on. review away |
|
GTFO tests fail. Let me see what I can do to test it. I have a wildcard cert somewhere... |
docs/application-deployment.md
Outdated
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.
@michaelshobbs I think you ran git cherry-pick in the wrong branch.
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.
i rebased master
|
So is the expectation that people only be able to use self-signed certs with this plugin? |
|
No. See docs for the generate command. We place the SS cert in place and then you can replace it when you get your real cert back if you decide to go that route. |
2c3ca22 to
a43fb8d
Compare
|
How does someone replace the cert? |
|
RTFM man!! 😄 from the new docs |
|
I mean shouldn't we remove the |
|
so that's a way to import a cert. which doesn't follow the heroku certs ui. hence i didn't use. that's a benefit of using something like ruby (?) for the client. not sure how to pipe in a key and cert file via an ssh connection |
|
Lets assume that we don't have to support ssh. Would it then be fine to include that functionality in here and rip it out of the old place? |
|
sure. the current implementation is a bit hokey. would you want to implement the same heroku ui? i.e.: |
|
Yeah, I think so? |
a43fb8d to
5cb62b1
Compare
Also move into subdirectory [ci skip]
|
Okay, I:
How do you set multiple ssl certs? I don't think thats possible at all, despite what the docs said. Can someone verify that to be the case? I don't see how, given that we hardcode the location of |
|
Multiple certs were never supported |
|
The following heroku commands are left unimplemented: The rollback one isn't worth attempting to implement, and I think |
This can be used as an alternative to importing via stdin, which may be preferred when working directly on a server, or via scripted installation/deployments.
If a command will exit because of invalid input, that isn't a warning, it's a failure.
|
I've implemented Thoughts (before you head off to the wilderness)? |
|
Works for me. |
plugins/certs/commands
Outdated
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.
you'll want a space here between $KEY_FILE and ]] 😄
Otherwise `make addman` will fail during test runs
|
Merging! |
TODOS:
certsplugin 'loosely' based on https://devcenter.heroku.com/articles/ssl-endpointcerts:remove,certs:infoandcerts:generate(if someone wants to take a stab at the others, please feel free)certspluginNote:
<plugin_path>/functionsand non-shareable functions residing in<plugin_path>/commands(example here)closes #1368
example
certs:infooutput