## What this PR does
This adds Gateway API HTTPRoutes for the SeaweedFS S3 endpoint and the
filer, as groundwork for moving tenant ingress to Gateway API (#4788).
This builds on #4893, which is now merged and keeps Object Lock working
for COSI credentials once SeaweedFS is on 4.48. Nothing is switched.
Both routes are off by default, and the route commit leaves the rendered
release unchanged.
The chart is bumped from 4.45 to 4.48 first, together with the in-tree
SeaweedFS image, so the patched binary matches the chart. Every carried
chart patch still applies. `s3-grpc-tls.patch` is dropped because 4.48
ships the same `[grpc.s3]` section. The in-tree image also drops
`volume-layout-crowded-lock.diff` from main. 4.48 already has that fix
(seaweedfs/seaweedfs#11216), so the patch no longer applies. CI rebuilds
the in-tree image and stamps its digest into the E2E and installer
artifacts.
The image also fixes peer discovery during startup. Peer changes could
be lost between the bootstrap scan and consumer setup, leaving S3
gateways subscribed to only one filer's metadata. Before the reconnect
fix I checked a CI image binary for the handoff and bootstrap replay
floor. The image for this head has not been checked that way.
The checked-in image ref is from an earlier build. Main and
release-candidate builds rebuild SeaweedFS and stamp its actual ref into
the packages before publication. To get this fix from a chart installed
straight from git, build the image first.
With this package's values, the render changes only in image references,
chart labels and new `checksum/*` annotations on master and s3 pods, so
those pods roll once on upgrade. With lifecycle enabled, the admin
container also gets an explicit `-ip=0.0.0.0`. Names, selectors and
volumeClaimTemplates stay the same. Suites that render master or s3 now
list the templates the checksum annotations include, because
helm-unittest only loads the templates a suite names.
The routes come from upstream commit seaweedfs/seaweedfs@68af030e38,
first released in 4.49. This package stays on 4.48, so they arrive as a
new patch. Only the s3 and filer routes and their values are taken. One
line differs from upstream on purpose. The s3 route's default backend is
`<name>-s3`, built from `seaweedfs.name` like the Service that
`s3-service-name.patch` renders. Upstream uses `componentName`, which
matches that Service only while the fullname equals `seaweedfs.name`, so
the new tests override `fullnameOverride` and fail on upstream's form.
The patch is temporary. Drop `patches/httproute-backport.patch` and its
Makefile line when bumping to 4.49 or later. From that release on, `make
update` fails on the patch, because it creates both templates. Before
dropping it, move the s3 backend name change into
`s3-service-name-consumers.patch` and the BackendTLSPolicy note into
`s3-tls-main-port.patch`. Upstream also ships master, volume and admin
routes, which I left out on purpose. The patch header carries the same
note.
Enabling the s3 route needs one more thing. With security on and no
`httpsPort`, the standalone s3 gateway serves TLS on its main port
(`s3-tls-main-port.patch`), so the Gateway needs a BackendTLSPolicy to
reach it. The chart does not render one, and a note next to
`s3.httpRoute` says so.
Extracting the chart from the 4.48 source archive and applying the
patches in `make update` order reproduces the committed `charts/` byte
for byte. Both in-tree image patches apply to the 4.48 source, and the
chart tests pass.
The tests reproduce peer changes lost during startup, and a peer kept
from an earlier master stream after a reconnect. With the current
patches, the filer, wdclient and server suites and focused race checks
pass on Linux. Before the reconnect fix I tested a native build with two
filers, shared PostgreSQL and two S3 gateways. Both filers returned the
identities, and both gateways accepted valid keys and rejected an
unknown key. These checks do not cover COSI driver RPCs or establish the
original failed run's persisted IAM state.
The E2E run on 79f2cfe passed all 33 cases, including Kafka metadata
backup. It does not validate the image for this head.
The earlier human review threads are answered. The PR needs a fresh
review after this update.
### Screenshots
Not a UI change.
### Downstream repositories
- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack)
- follow-up:
- [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up:
- [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up:
- [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) -
follow-up:
- [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) -
follow-up:
- [ ]
[cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server)
- follow-up:
- [ ]
[cozystack/external-apps-example](https://github.com/cozystack/external-apps-example)
- follow-up:
- [ ] [cozystack/examples](https://github.com/cozystack/examples) -
follow-up:
- [ ] [cozystack/community](https://github.com/cozystack/community) -
follow-up:
### Release note
```release-note
feat(seaweedfs): bump the vendored SeaweedFS chart and the in-tree image to 4.48 and add opt-in Gateway API HTTPRoutes for the S3 endpoint and the filer (`s3.httpRoute`, `filer.httpRoute`, both disabled by default). Existing exposure does not change. Fix lost peer discovery during filer startup.
```
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **New Features**
* Added configurable Gateway API HTTP routes for filer and S3 services.
* Added configurable labels for ingress resources and support for
combining global and component pod annotations.
* Added admin address configuration with authentication checks for
non-loopback bindings.
* Updated SeaweedFS to version 4.48.
* **Bug Fixes**
* Improved pod rollouts when master or S3 configuration changes.
* Expanded read-only S3 credentials to allow listing.
* Improved filer handling of peer updates during startup.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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.
