Repository navigation
Merge v2-next into main - #669
Open
cnvergence wants to merge 47 commits into
Open
cnvergence wants to merge 47 commits into
cnvergence wants to merge 47 commits into
Conversation
Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt>
* Add more tests Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * drop test tables Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> --------- Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt>
Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt>
On-behalf-of: @SAP robert.vasek@sap.com Signed-off-by: Robert Vasek <rvasek01@gmail.com>
On-behalf-of: @SAP robert.vasek@sap.com Signed-off-by: Robert Vasek <rvasek01@gmail.com>
* chore: rename copyright holder to The Kbind Authors Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * docs: update the v2-extended proposal for the implementation round kbind naming and root layout, stateless cookie sessions, one-time pickup via Grant annotations, per-grant Lease link, TokenReview authenticator, krew plugin name kept as 'bind'. Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * sdk: add catalog.kbind.io (Export, Collection) and iam.kbind.io (Grant) The catalog is presentation + defaults on top of the core's discovery; the Grant is the issuance record (identity x export, APIs resolved at bind time) and the anchor for revocation, audit and the reaper. Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * engine: home the heartbeat Lease per connection in the tenant namespace The Lease lands in the kubeconfig context's namespace when set (the issuer pins it to the per-consumer boundary), named per (connection, consumer cluster) and annotated with the Connection name — so a service-layer reaper gets per-grant staleness, and tenant RBAC for Leases stays namespace-scoped. Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * pkg: SSA apply helper and embedded manifests kubeapply applies YAML multi-docs with CRD-establishment retries; konnectorinstall embeds the konnector install (CRDs, RBAC, Deployment); servicecrds embeds the catalog/iam CRDs for the backend's self-install. Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * backend/auth: pluggable authenticators OIDC (code + PKCE) configured kube-apiserver-style, stateless encrypted cookie/bearer sessions (no session store; HA needs only shared keys), a TokenReview authenticator for in-platform callers, and an embedded mock issuer behind a dev flag. Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * backend/issuer: Grant provisioning, catalog validation, bundle assembly Per-identity boundary namespace, ServiceAccount with RBAC enumerating exactly the granted APIs (Cluster or Namespace scope), long-lived SA token; Export validation against the exported-CRD labels; the bundle builder emits the core's one-apply file with the context namespace pinned to the boundary. Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * backend/gateway: stateless HTTP API Catalog browsing, bind with a single-use short-TTL pickup URL (enforced via Grant annotations with optimistic concurrency — no gateway state), consumer-cluster inventory from heartbeat Leases, per-export synced instances, konnector install manifest, and flag-gated browser-apply. Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * backend/reaper: Lease-keyed GC of stale grants Marks grants stale per their own connection's heartbeat (conservative fallback for renamed connections); revocation and boundary deletion are explicit opt-ins. Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * web: embedded gateway UI Dependency-free SPA: standalone login page, sidebar app with catalog (related-resource chips, synced instances), clusters view, one-time bundle ticket, connect-a-cluster flow. Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * cmd/backend: one binary with module flags --enable-gateway/issuer/reaper/apply, kube-style OIDC flags, cookie keys, CRD self-install, leader-elected controllers. Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * cli: the bind CLI login (browser dance), connect (konnector install), catalog, clusters, instances, and binding an export via 'kubectl bind export <name>'. Shipped to krew as the 'bind' plugin (binary kubectl-bind). Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * deploy: backend Helm chart, Tilt dev loop, demo content Chart with module values and secret-backed OIDC/cookie config; a two-kind-cluster Tilt setup (provider backend, consumer konnector, seeded catalog with related resources); samples aligned with the seed. Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * build: multi-target images, goreleaser + krew CLI releases The Dockerfile gains a backend target (konnector stays the default); image.yaml pushes both images on tags; the CLI releases via goreleaser on final tags only (RCs skip) and krew-release-bot updates the 'bind' plugin; make targets for backend, bind, tilt and cli-snapshot. Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> * test/e2e: backend full loop and real-OIDC (Dex) coverage The full-loop test drives catalog -> bind -> pickup -> one apply -> sync through the issued RBAC-fenced credentials -> clusters/instances views -> reaper -> revocation. The Dex test boots the real backend binary against Dex in docker and logs in through its password form. Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> --------- Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt>
On-behalf-of: @SAP robert.vasek@sap.com Signed-off-by: Robert Vasek <rvasek01@gmail.com>
On-behalf-of: @SAP robert.vasek@sap.com Signed-off-by: Robert Vasek <rvasek01@gmail.com>
* Fix boilerplates and add generate script Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> * Add missing boilerplates Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> --------- Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
Rename konnector & backend charts to have `-v2` suffix. Also add gitlab CI job for pushing charts.
Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt>
The schema.source: OpenAPI path installed every synthesized CRD from the provider's discovery unconditionally, ignoring pullPolicy and any binding. Against a kcp workspace this mirrors the whole built-in *.kcp.io system surface (apis/tenancy/topology/cache/core) onto the consumer, not just the API the consumer bound. Split discovery from install so OpenAPI behaves like the CRD source: - discoverAndInstall (OpenAPI) now only synthesizes candidate CRDs to populate status.exportedAPIs; it installs nothing. Keeping exportedAPIs populated is what lets a ClusterBinding go Ready (not APINotExported), so status + related-resource sync keep working against kcp. - pullPolicy: All eager-install in Reconcile is now source-aware (OpenAPI synthesizes+installs; CRD pulls the provider object) — no regression. - pullPolicy: Bound installs on demand in the binding reconciler, only the CRD for the referenced API (kcp is CRD-less, so it synthesizes it). - pullPolicy: None installs nothing; the user manages the CRD. Update the schema-source e2e test to assert the new contract: under Bound the Connection installs nothing until a binding references the API, and the binding then installs the synthesized CRD. Result: source: OpenAPI + pullPolicy: Bound installs only bound APIs; kcp system groups no longer leak onto the consumer. Signed-off-by: Amit Marcus <marxus@gmail.com>
It should be ghcr.io/kbind-dev On-behalf-of: @SAP robert.vasek@sap.com Signed-off-by: Robert Vasek <rvasek01@gmail.com>
On-behalf-of: @SAP robert.vasek@sap.com Signed-off-by: Robert Vasek <rvasek01@gmail.com>
fix(openapi): honor pullPolicy on the OpenAPI schema source
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
feat(docs): prepare and publish v2 docs website
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com
Signed-off-by: olamilekan000 <odukoyaonline@gmail.com>
Signed-off-by: olamilekan000 <odukoyaonline@gmail.com>
docs: add kbind v2 getting started blog post
Signed-off-by: olamilekan000 <odukoyaonline@gmail.com>
…-blog docs: add kbind v2 service onboarding article
Resolve conflicts in favor of the v2 restructure. Keep the republish-images workflow, issue template updates and .kbind gitignore entry from main. v1 code remains on the v1 branch. Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Preparing for v2 release, merge branch v2-next into main.
Older code has been moved into https://github.com/kbind-dev/kbind/tree/v1.
What Type of PR Is This?
/kind feature
Related Issue(s)
Fixes #
Release Notes