hyperadev / kani Goto Github PK
View Code? Open in Web Editor NEWA fast Traefik forward-auth server for validating Cloudflare Access requests
License: MIT License
A fast Traefik forward-auth server for validating Cloudflare Access requests
License: MIT License
When using Kani v1.1.0, Kani unexpectedly returns Unauthorized for all requests.
This is because of the error: failed to verify signature: fetching keys oidc: get keys failed Get "https://[team].cloudflareaccess.com/cdn-cgi/access/certs": x509: certificate signed by unknown authority
This error is caused by the use of the 'scratch' base image, which does not have /etc/ssl/certs/ca-certificates.crt
which Go uses when making http requests.
Hi.
Thanks for creating this project. While it was intended to be used for Traefik, this project seems to work well when using ingress-nginx (and presumably other ingress controllers) aswell. I think it would be beneficial to provide an example for other reverse proxies, or at least ingress-nginx as it tends to be a pretty popular ingress controller.
For ingress-nginx, an ingress can be annotated with
nginx.ingress.kubernetes.io/auth-url: "http://kani.kube-system.svc.cluster.local:3000/<AUD>"
With an invalid AUD set, it will 401 as expected. Headers can probably be forwarded aswell with an auth-snippet of some sort, but haven't looked into it yet as I don't have a usecase for it.
There are currently no Helm charts that can be used to deploy Kani in a Kubernetes cluster.
I think it could be useful if we provided an "official" Kani helm chart which could be used to easily deploy Kani.
No response
As we only use one HTTP route, we don't need to use a library like gofiber.
Instead, we can directly use net/http or fasthttp.
This is a to-do list for kani v2.0.0.
Development on kani v2.0.0 will be conducted on the v2
branch until we are ready to release it.
kani v2.0.0:
hypera.dev/kani/v2
If you have any ideas you would like to suggest, feel free to below!
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.goreleaser.Dockerfile
docker/dockerfile 1
alpine 3.20.2@sha256:0a4eaa0eecf5f8c050e5bba433f58c052be7587ee8af3e8b3910ef9ab5fbe9f5
Dockerfile
docker/dockerfile 1
golang 1.22.6-alpine@sha256:1a478681b671001b7f029f94b5016aed984a23ad99c707f6a0ab6563860ae2f3
.github/workflows/build.yml
HyperaDev/actions main
.github/workflows/release.yml
HyperaDev/actions main
go.mod
go 1.21
go 1.22.6
github.com/coreos/go-oidc/v3 v3.11.0
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.