Code Monkey home page Code Monkey logo

trellis-cloudflare-origin-ca's Issues

Does this autorenew certificates?

Hi, simple question. You have set the certificate days default value to 7. What happens when the certificate generated by this expires? Does it auto renew or do you have to reprovision the take again to generate a new one?

Many thanks

Failing on Add Cloudflare key - pubkey 404

Hello,

I've used your package several times. Now when trying to reprovision a new server it is failing with the below. Any ideas? All my setup is correct as I have used your package before.

Many thanks,
Aaron

TASK [TypistTech.trellis-cloudflare-origin-ca : Add Cloudflare key] ************
fatal: [***********]: FAILED! => {"changed": false, "msg": "Failed to download key at https://pkg.cloudflare.com/pubkey.gpg: HTTP Error 404: Not Found"}

Overwrite SSL certificates if settings are changed

Submit a feature request or bug report


What is the current behavior?

When adding domains or changing the site_hosts the cloudflare_origin_ca doesn't get updated because {site_key}.pem already exists.
[FATAL] Certificate file "{site_key}.pem" already exists, use -overwrite to overwrite
This results in cloudflare not adding the origin ca to additional domains or updating the hostnames.

What is the expected or desired behavior?

I think this behavior should be documented and/or be resolved. A solution would be to allowing to overwrite the certificate file name or passing -overwrite using an argument.

400 No required SSL certificate was sent

Submit a feature request or bug report

Replace any X with your information.


What is the current behavior?

400 Bad Request
No required SSL certificate was sent after running ansible-playbook server.yml -e env=staging -t cloudflare-origin-ca


Bug report

(delete this section if not applicable)

Please provide steps to reproduce, including full log output:

X Somehow nothing in nginx logs.

Please describe your local environment:

Ansible version: 2.5

OS: macOS 10.13.3

Vagrant version: n/a

Trellis commit: 9dfddfd

Where did the bug happen? Development or remote servers?

X Remote

Why don't you create a pull request to fix it?

X Not sure what causes the error

Other relevant information:

X Cloudflare has generated the Origin cert, and it seems client cert field has been updated in nginx config.

Can we create one certificate manually on Cloudflare dashboard and this role picks that instead of creating new certificates every time?

Hi,

I have started using Trellis recently and in the last couple of days, I see that my Cloudflare dashboard has about 4 origin certificates with the same domains in it.

Is it not possible that we create one origin certificate defining example.com and *.example.com from the dashboard and this plugin picks that instead of creating a new one every time?

I am not very clear about what exactly triggered the new certificates, it might be the creation of a new machine on Google Cloud. I have provisioned the server multiple times so higher chances are that creation of a new machine and then the first provision on that creates a new origin certificate.

Nonetheless, could you please shed some light on this matter. Does Cloudflare limit the number of origin certificates creation? And if by any chance referencing an old manually created certificate is possible, and if that would help.

All I see is 4 certificates on my dashboard which I will manually delete.

Manual + Cloudflare on one server

I have multiple sites on one trellis, and some use different cloudflare accounts. When attempting to use a combination of manual and cloudflare it says that it can't find the domain (predictably) but, it shouldn't be trying to because i have those set to manual SSL.
What I've done for now is set all sites to manual, then it provisions successfully.

Another solution could be using multiple account keys and setting them for each site in wordpress_sites.yml or vault.yml
This could just be some weird edge case that nobody ever does though. :)

Fix bare variable deprecation warning

TASK [TypistTech.trellis-cloudflare-origin-ca : fail] **************************
[DEPRECATION WARNING]: evaluating ssl_enabled and item.value.ssl.provider |
default('manual') == 'cloudflare-origin-ca' as a bare variable, this behaviour
will go away and you might need to add |bool to the expression in the future.
Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be
removed in version 2.12. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.