feat(proposal): Headlamp Plugin for PipeCD
What would you like to be added:
A plugin for Headlamp that integrates with PipeCD to display CI/CD pipelines, deployment status, and related insights directly within the Headlamp dashboard.
The plugin would allow users to:
- View PipeCD applications and pipeline states
- Monitor real-time deployment status (running, succeeded, failed)
- Access deployment logs and history (including rollbacks)
- See events such as deployment triggers, failures, and drift detection
- Support multi-project/multi-tenant environments with proper RBAC
Why is this needed:
Currently, users must switch between Headlamp (for Kubernetes management) and PipeCD (for CI/CD visibility). This context switching slows down workflows and reduces operational efficiency.
Integrating PipeCD into Headlamp would provide:
- A unified Kubernetes + CI/CD experience
- Faster debugging and monitoring of deployments
- Better visibility into GitOps workflows within a single interface
This would improve developer and operator productivity, especially in environments where Kubernetes is the central platform for application management.
Sounds pretty cool. @khanhtc1202 @Warashi @armistcxy
/assign
Really like this proposal! Integrating PipeCD into Headlamp would provide a seamless Kubernetes + CI/CD experience, reduce context switching, and make deployment monitoring and troubleshooting much more efficient. This would be a valuable addition.
Hi @yashisrani and @khanhtc1202,
uhhh i wanna contri in this project and I'm hoping to work on it as part of the upcoming CNCF LFX Mentorship.
I spent some time reading through the proposal, and I really like the idea of bringing PipeCD directly into Headlamp. Having deployment status, pipeline history, logs, and rollback information in the same place as the Kubernetes resources would make day-to-day operations much smoother and reduce the need to constantly switch between tools.
This is the approach I have in mind:
- First, I'd explore the Headlamp Plugin SDK and understand how plugins are structured, how they interact with Kubernetes resources, and how the UI is organized.
- Then I'd study the PipeCD APIs to understand how deployment information, application status, logs, and events can be retrieved and displayed inside the plugin.
- I'd start by building the core views for applications and deployment status, then gradually add deployment history, rollback details, logs, and deployment events.
- For deployment updates, I'd look into using the most suitable mechanism supported by PipeCD so the plugin can reflect changes without requiring users to refresh the page manually.
- I'd also make sure the plugin works well in multi-project environments while respecting existing authentication and RBAC rules.
- Finally, I'd focus on testing, documentation, and making the setup process simple so others can easily install and use the plugin.
I'd really appreciate any feedback on whether this seems like the right direction. If there are any smaller issues or prerequisite tasks that would be useful to work on before taking this feature forward, I'd be happy to start there.
Looking forward to contributing. Thank you!
Hi @khanhtc1202 @yashisrani, I'm interested in this for the upcoming LFX term.
Groundwork so far: I've been contributing to Headlamp itself; kubernetes-sigs/headlamp#6675 is my current PR, a correctness fix in the streaming list API in lib/k8s/apiProxy, part of the plugin-facing surface this plugin would build on. I've also run the PipeCD quickstart end-to-end (kind cluster, piped registered, canary app deployed) and read the Flux and Argo CD plugins in headlamp-k8s/plugins as the closest analogs.
Proposed shape, mirroring those plugins: Applications list view (sync/deploy state), Deployment detail view with pipeline stage progression, deployment history + rollback info, and a manual-sync action.
The interesting design problem I hit while reading: both existing CD plugins fetch data as Kubernetes CRs through Headlamp's proxy; and argocd/src/api/argoClient.ts:22-30 documents why: the apiserver service proxy strips Authorization: Bearer, so a vendor session token can't reach a vendor API. Argo CD works around this by merge-PATCHing its Application CRs. That workaround doesn't transfer here, since PipeCD's state lives in the control plane, not in CRs. So the core question: how should the plugin authenticate to the PipeCD control-plane API;' a piped-side read API, a small proxy component, or something else you already have in mind?
Happy to pick up smaller Headlamp- or PipeCD-side issues in the meantime.
Applying for this in Term 3.
On where the data comes from. Reading CRs, the way the Argo CD and Kmesh plugins do, does not work here, PipeCD has no CRDs.
Headlamp's ApiProxy is out too. argoClient.ts explains why, the proxy takes Authorization and the browser blocks Cookie. A PipeCD API key rides in authorization, so it would not get through. Kmesh uses the pod proxy for its daemon, but that API takes no credential, so it is a different case.
Two routes left. The Headlamp backend has an /externalproxy that copies request headers through to any URL matching its --proxy-urls allowlist, so the API key gets there and nothing needs enabling in the PipeCD chart. The other is apiservice direct over grpc-web, that route already exists in Envoy with ext_authz off, and CORS is in the chart but off by default. I have not tested whether grpc-web framing survives the externalproxy hop, that would decide between them.
The bit I would want your call on is the key. Sync is in scope and SyncApplication needs read-write, so read-only is not enough. Read-write key in the plugin settings, or leave sync out of v1?
Ran the test you mentioned not having done: called apiservice.ListApplications directly over grpc-web from a local client (bypassing /externalproxy entirely) — authenticated with an API-KEY, got back a full application object. So the grpc-api-service cluster in the gateway's Envoy config is reachable via grpc-web on its own; externalproxy doesn't seem necessary for this path.
On the write-key question: since this only exercises ListApplications/GetDeployment type reads so far, haven't hit the SyncApplication read-write case yet — will look into whether a read-only key can be scoped per-RPC or if it's all-or-nothing at the project level.
Applying for Term 3. Have open PRs in both pipe-cd/pipecd (#7147) and headlamp-k8s/plugins (#1052).
Respected Maintainers, I've just submitted my LFX Mentorship 2026 Term 3 proposal for the PipeCD Headlamp plugin project.
The proposal includes:
- An overview of both projects, mapping each requested feature to the specific PipeCD API surface it will use
- A full implementation plan: a connection-based multi-tenancy model (per-project API keys stored in Headlamp's settings), a small upstream change to let the web-service API accept API-key credentials (unlocking live state, events, and insights for browser-based consumers), and deep Headlamp integration via sidebar entries, routes, and details view sections on Kubernetes Deployment objects
- A 12-week, demo-gated timeline with acceptance criteria, testing strategy, and risk mitigations.
- I'd love feedback from the mentors and community on the design especially the connection/auth model and the proposed upstream API change. Happy to discuss and iterate on any part of it.
Traced through the actual answer to the read-write key question I flagged earlier.
model.APIKey.Role is a two-tier enum (READ_ONLY / READ_WRITE), fixed per key, project-scoped — not per-RPC. Enforcement itself is per-RPC: every handler in pkg/app/server/grpcapi/api.go calls requireAPIKey(ctx, requiredRole, ...) with its own required role (e.g. ListApplications requires READ_ONLY, SyncApplication requires READ_WRITE). But a READ_WRITE key passes every check unconditionally — there's no way to scope a key to just SyncApplication without also unlocking AddApplication, DeleteApplication, etc.
So @Ahmad-Faraj's trade-off is confirmed as-is: shipping sync means the plugin holds a full read-write key, not a scoped one. Might be worth raising as a separate enhancement (per-method or per-resource key scoping) if the maintainers want it — happy to file that if useful, independent of this plugin.
@khanhtc1202 the builtin labels are enough to map cluster objects to applications client side, so the read views don't need a key, and piped_id scopes the list to the cluster in view.
On the open question from my Aug 8 comment, grpc-web framing does survive the /externalproxy hop. I tested it against a stub, 53 bytes each way with the trailer frame intact, so that route needs nothing from the PipeCD chart.
Which way do you want sync: read-write key in plugin settings for v1, or read-only first and sync once scoping is settled?
@khanhtc1202 one thing narrows the sync question I asked above.
The read-only fallback in the plan above assumes the plugin can tell a read-only key from a read-write one. I don't think it can. apiservice has no RPC that hands back the caller's own key, and requireAPIKey keeps the role internal. So the plugin has to probe, and every READ_WRITE method mutates something except GetPlanPreviewResults, which checks the role before it reads req.Commands. An empty list there comes back clean and touches nothing.
That works, but firing a plan-preview call on load just to find out what the key is seems like the wrong shape.
So the choice is narrower than it looked. A read-write key in settings means either that probe, or a sync button that fails on click for read-only users. Read-only for v1 avoids both. Which do you want?
I went down this rabbit hole too, and I think @Ahmad-Faraj is right that there's no clean way today.
I traced requireAPIKey and walked all 21 APIService handlers: the verified *model.APIKey (with its Role) is available in the request context on every call via rpcauth.ExtractAPIKey, but no RPC ever echoes the caller's own key or role back in a response. The APIKey model has the role field, but it's only ever surfaced through webservice.ListAPIKeys, which is JWT/console-authenticated, returns the whole project's keys, and doesn't identify which one is the caller — so it's not reusable from an API-key-only client.
On the GetPlanPreviewResults probe: technically it is side-effect-free with an empty commands list. requireAPIKey runs first, before any datastore work, so a READ_ONLY key is rejected at the auth gate with PermissionDenied and touches nothing. With a READ_WRITE key it passes the gate, then the handler just ranges over an empty commands slice (no validate rule forces it non-empty), builds an empty result set, and returns. Nothing is created or mutated either way. So it works as a discriminator — PermissionDenied means read-only, anything else means read-write. But I agree it's the wrong shape: firing a plan-preview RPC on load to infer a key's role is surprising, and it couples the plugin to an unrelated RPC's validation staying lenient.
A cleaner option might be a small standalone RPC on APIService — something like GetMe or Ping — that returns just { project_id, api_key_role }, with no role gate, populated directly from rpcauth.ExtractAPIKey(ctx). It looks like roughly a 15-line change (proto message + one handler, no datastore access). It would also be independently useful for any API-key client (pipectl, CI scripts) that wants to sanity-check its credential or scope.
@khanhtc1202 @Ahmad-Faraj — if that direction seems reasonable, this could land as its own small PR ahead of / independent of the plugin work. Happy to pick it up if there's agreement on the shape.
PipeCD Plugin for Headlamp — Issue Tracker
Plugin code lives in headlamp-k8s/plugins.
TODO
- [x] Project Structure ( https://github.com/headlamp-k8s/plugins/pull/1277)
- [x] Api Client and Settings Page (https://github.com/headlamp-k8s/plugins/pull/1300)
- [x] Application List (https://github.com/headlamp-k8s/plugins/pull/1301)
- [x] Detail view (https://github.com/headlamp-k8s/plugins/pull/1454)
- [x] Sync button (https://github.com/headlamp-k8s/plugins/pull/1460)
- [x] Overview page (https://github.com/headlamp-k8s/plugins/pull/1527)
- [x] More Test Cases (https://github.com/headlamp-k8s/plugins/pull/1544)