Giter VIP home page Giter VIP logo

cfcr's People

Contributors

eze-kiel avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cfcr's Issues

[Bug]: TXT records renewal fails when there are old TXT records

Version

v1.1.0

What happened?

Here is what happens:

image

  1. The cert needs to be renewed, as new TXT records are available in Cloudflare.
  2. cfcr gets them, and then check if some TXT records are already present in OVH.
  3. As cfcr is supposed to be the only one that handles those TXT records, it thinks that it is the one that put them there, so there is no renewal to perform. It knows that because when the cert is renewed, it cleans the TXT records. So if there are TXT records remaining, it means that they are still useful.

Relevant log output

No response

Anything else?

To fix it, cfcr should compare the TXT records it got from Cloudflare to the one it got from OVH. Cloudflare is the source of truth, so:

  1. if they are the same, all good, just wait & pray.
  2. if they are different, replace the ones from OVH by the ones from Cloudflare.

[Bug]: OVH provider returns 401 error

Version

v3.0.0 (built: 2023-05-25_12:14:02TUTC)

What happened?

Cfcr logs report a 401 error while trying to access OVH API and then panic

Relevant log output

image

Anything else?

No response

[Feature]: use an hardened Docker image

Describe the solution you'd like

Statically compile cfcr and use a scratch base image in the last build stage. This will reduce the attack surface and attacker's capabilities in case of compromise.

Additional context

Having FROM scratch images may make the debugging process more complex (no shell nor privileges...).

Let's discuss about it if you're interested in the the idea @xakraz :0)

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.