After a logout the console lands straight on the Keycloak login page. If that page stays open for more than 15 minutes before the password is entered, the callback fails with a 403 and the gatekeeper logs unable to obtain CSRF cookie: ... CSRF cookie with name 'kc-access_<state>_csrf' was not found oauth2-proxy gives the CSRF cookie a fixed Max-Age of --cookie-csrf-expire (15m by default), while Keycloak keeps a login page usable for 30 minutes and then restarts the flow with the original state, so the browser drops the cookie while the login it belongs to is still alive. The lifetime becomes 1h, which outlives Keycloak's login lifespan. It stays finite and well below --cookie-expire (168h) on purpose: a CSRF cookie with an older signature fails validation, and the per-request limit skips such cookies instead of deleting them, so a cookie the browser keeps longer than that would stay in the request headers. Tested by running the chart-rendered oauth2-proxy v7.12.0 config against a live Keycloak, waiting in real time: after a logout, a login page left open for 16 minutes fails with the 403 above on the default lifetime and signs in once the cookie outlives the wait; at 31 minutes Keycloak asks for the password again and the login then completes. The same binary sets Max-Age=3600 on the CSRF cookie with this flag. Assisted-by: LLM Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
Cozystack
Cozystack is a free and open-source platform and framework for building clouds.
Cozystack is a CNCF Sandbox project that was originally built and sponsored by Ænix.
With Cozystack, you can transform a bunch of servers into an intelligent system with a simple REST API for spawning Kubernetes clusters, Database-as-a-Service, virtual machines, load balancers, HTTP caching services, and other services with ease.
Use Cozystack to build your own cloud or provide a cost-effective development environment.
Use-Cases
-
Using Cozystack to build a public cloud
You can use Cozystack as a backend for a public cloud -
Using Cozystack to build a private cloud
You can use Cozystack as a platform to build a private cloud powered by Infrastructure-as-Code approach -
Using Cozystack to build your own platform
You can install only the Cozystack components you need on an existing Kubernetes cluster
Documentation
The documentation is located on the cozystack.io website.
Read the Getting Started section for a quick start.
If you encounter any difficulties, start with the troubleshooting guide and work your way through the process that we've outlined.
Versioning
Versioning adheres to the Semantic Versioning principles.
A full list of the available releases is available in the GitHub repository's Release section.
Contributions
Contributions are highly appreciated and very welcomed!
In case of bugs, please check if the issue has already been opened by checking the GitHub Issues section. If it isn't, you can open a new one. A detailed report will help us replicate it, assess it, and work on a fix.
You are welcome to take on the fix yourself. Commits are used to generate the changelog, and their author will be referenced in it.
If you have a concrete feature request, open an issue. For a cross-cutting or architectural change, open a design proposal in the community repo. For questions or early ideas, use GitHub Discussions. See CONTRIBUTING.md for the full routing.
Community
You are welcome to join us in #cozystack, on either CNCF Slack (get an invite) or Kubernetes Slack (get an invite), in our Telegram group, and at our community meetings. Add them to your Google Calendar or iCal for convenience.
Project documents
| Document | What it covers |
|---|---|
| Governance | How decisions are made and who makes them |
| Contributor Ladder | How to grow from contributor to maintainer |
| Maintainers | Who maintains the project |
| Code of Conduct | What we expect of each other |
| Security Policy | Reporting a vulnerability, and which releases get fixes |
| Adopters | Who runs Cozystack in production |
| Roadmap | Where the project is going |
License
Cozystack is licensed under Apache 2.0.
The code is provided as-is with no warranties.
Commercial Support
A list of companies providing commercial support for this project can be found on official site.
