d7144cda9e feat(platform): migrate Postgres accounts to minted credentials
Migration 64 converts the existing Postgres releases. It first applies
the CredentialTemplate CRD baked into its image, owned by the
cozystack-controller release so that release's upgrade adopts it: on a
live upgrade the tenant releases switched to the converted chart about
17 minutes before cozystack-controller upgraded, and every render in
between failed on the unknown kind. It then runs credentials-migrate
seed, which writes the account Secrets from <release>-credentials so
clients keep logging in at every point of the upgrade. A release that
grants createRole is left out and keeps its previous chart.

The finish half runs from a Job the migration creates, not from the
platform chart: a chart-rendered Job has a fixed name and an image that
changes every release, so the next platform upgrade cannot patch its
immutable pod template, and helm-controller would wait on a Job that
runs up to 30 minutes and exits non-zero while any release is left out.
The Job runs the image the hook runs as, read from its own pod, under a
least-privilege ClusterRole rather than cluster-admin, and its
ServiceAccount is owned by the Job so the garbage collector removes it.
The identity carries the migration number like the Job, so a later
conversion migration cannot delete the ServiceAccount a still-running
earlier Job uses.

The CredentialsMigrationIncomplete alert keys on the incomplete label of
the state ConfigMap through kube-state-metrics, which allowlists only
that one ConfigMap label, so a release whose plaintext was never retired
stays visible after the Job's TTL. The bats suite pins the CRD apply,
seed, image read, Job apply, ownership and stamp steps as fail-closed;
its fake kubectl counts the Job's name inside the Job document only.

Co-authored-by: IvanHunters <xorokhotnikov@gmail.com>
Co-authored-by: Andrei Kvapil <kvapss@gmail.com>
Assisted-by: LLM
Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-11-30 18:21:27 +01:00
2026-11-04 00:56:56 +01:00
2025-10-08 09:43:34 +05:00
2024-02-08 12:04:32 +01:00

Cozystack Cozystack

GitHub Release Apache-2.0 License Commit activity OpenSSF Best Practices OpenSSF Scorecard CLOMonitor Support

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.

Cozystack user interface

Use-Cases

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.

Languages
Go 53%
Shell 33.2%
TypeScript 6.7%
Go Template 4.7%
Makefile 1.3%
Other 1%