-
Notifications
You must be signed in to change notification settings - Fork 416
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
Extend require() to allow plaintext to variable #3190
Comments
How about this instead? ===== s.sh
===== tls.json
===== dnsconfig.js
|
How about this? Your script can generate a JSON file (perhaps with the help of a command like ===== tls.json
===== dnsconfig.js
|
Thanks for the reply and a happy new year! I kinda like your second approach. I'd change it so something like this below, hope I made no mistake in the syntax, I didn't check this yet!
But generally speaking, beeing able to just "include" the plain command would still be more generalistic in all cases.
|
If someone is looking for a way to implement DANE in an more automated way without (currently, as my current setup doesn't allow for this) rollovers: Requirements:
I updated my solution in this "issue" and came up with this monstrosity: I call this "get_tls_hash.sh"
Which is called by "gen_tls_hash.sh" :
TLSA-List.txt is just a plain file in this format:
and the generated records are "included" (-> required) in dnscontrol.js at the very end (!) of the config file like this:
I hope somebody will find this interresting. Michael |
Thanks! I'm closing this issue but github will keep this around forever. |
Is your feature request related to a problem? Please describe.
As discussed on the mailing list between Tom and me. Topic: "Generation of correct TLSA record variables - How?"
My issue basically could be solved by an monstrocity of escaped ", " and ' combinations. It's not readable code. It would be way more easy, if the project would allow an easy option to load plaintext from files into a variable.
Describe the solution you'd like
------ ./somefile.txt ------
CNAME("foo", "foo.example.com."),
------ ./dnscontrol.js -------
Result:
CNAME foo.example.com was added to D()
Describe alternatives you've considered
I had to generate this:
where all the variable parts I generated with some other script had to be reconstructed from json. I could have altered the generation of the script to just the plaintext TLSA() string.
Additional context
Should be sufficient, I hope.
Just for reference: My TLSA() script to generate the variables, if someone cares to do DANE as well. Could be altered to read the certificate file instead or talk to a webserver, not mail by changing the openssl options.
-------- ./get_smtp_tls_hash.sh -----------------
Thank you for considering this request.
The text was updated successfully, but these errors were encountered: