planetlabs / hal5d Goto Github PK
View Code? Open in Web Editor NEWAn haproxy shim for linkerd Kubernetes ingress
License: Apache License 2.0
An haproxy shim for linkerd Kubernetes ingress
License: Apache License 2.0
https://github.com/negz/hal5d/blob/937aa88/internal/cert/manager.go#L449
Currently hal5d
validates new certificates by:
haproxy
certificate dirhaproxy -c
against the real, production haproxy
confighaproxy
) or 'rolling back' (by deleting the cert) the new cert.If hal5d
crashes or is shutdown anywhere between steps 1 and 3 it will forget all about the temporary certificate file it wrote out. If the certificate was bad then all future certificates will fail validation and not be loaded, because haproxy -c
validates all certificates in the directory as a whole, not just the new incoming ones. Further more, if haproxy
were to restart for some reason it would be unable to start due to the invalid certificate.
hal5d
should write temporary certificate files to an alternative 'staging' directory and validate against that rather than the production directory. The staging directory should either be cleaned before each validation run, or unique (i.e. a temporary directory) to each run.
https://github.com/negz/hal5d/blob/937aa88/internal/cert/manager.go#L409
When Kubernetes notifies hal5d about an ingress certificate hal5d should avoid writing the new certificate (and reloading) if the certificate matches one already on the disk. In practice this does not seem to be working; our stats show the same certificates being rewritten and haproxy reloaded every 30 minutes (i.e. the Kubernetes watch refresh interval) despite these certificates being unchanged.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.