feat: add OpenShift deployment via Helm chart#22
Open
luis5tb wants to merge 4 commits into
Open
Conversation
539d24b to
24d76aa
Compare
Add a Helm chart under deploy/openshift/ for deploying the Lightspeed Agent on OpenShift. Supports two deployment modes: - hybrid: agent + Redis on OCP, marketplace handler stays on Cloud Run - standalone: everything on OCP (agent, handler, UI, PostgreSQL, Redis) Includes templates for all components (agent with MCP sidecar, marketplace handler, PostgreSQL, Redis), OpenShift Routes, ConfigMap, Secrets, and PVCs. Security hardening with runAsNonRoot, Redis authentication, and handler/UI as ClusterIP-only services. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add a browser-based standalone UI for testing the agent in standalone mode. The UI drives the full order lifecycle: 1. Create Order — sends simulated Pub/Sub events to provision an entitlement (ENTITLEMENT_CREATION_REQUESTED + ENTITLEMENT_ACTIVE) 2. Register Client — DCR with a self-signed JWT referencing the real order ID, creating an OAuth client in Red Hat SSO 3. Get Token — client credentials grant against SSO (with CORS fallback via curl) 4. A2A Client — send messages to the agent with the token 5. Reset — cancels the entitlement and clears all credentials The UI runs behind nginx with a reverse proxy to the handler's internal ClusterIP service (/api/handler/), so the handler is never publicly exposed. CSP is tightened, HTML sanitizer covers SVG/style/math/data URI vectors, and the marked CDN is pinned to a specific version. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Introduce two new settings for OpenShift deployments without the Google Cloud Marketplace: - SKIP_ORDER_VALIDATION: bypasses marketplace order-id checks while preserving JWT token introspection. Required for hybrid mode (no local marketplace DB). Blocked in Cloud Run via K_SERVICE guard. - SKIP_DCR_JWT_VALIDATION: bypasses DCR software_statement JWT signature verification only — account and order validation still run against the local database (tightened from the initial implementation that skipped all validation). Add comprehensive README with architecture diagrams, deployment instructions for both hybrid and standalone modes, configuration reference, and post-install NOTES.txt. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ition DCR-created clients on Red Hat SSO do not have service accounts or direct access grants enabled, making client_credentials and password grants unusable. Switch the standalone UI to the authorization code flow: - Display the SSO authorization URL for users to open manually - Generate a curl --data-urlencode command for the token exchange instead of using fetch() (which would consume the single-use code via CORS even when the response is blocked) - Omit redirect_uri from both auth and exchange requests (SSO uses the registered default) - Document the /etc/hosts workaround to prevent the Vertex AI redirect page from consuming the authorization code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Add a Helm chart under deploy/openshift/ with configurable values for deploying the Lightspeed Agent on OpenShift without the Google Cloud Marketplace handler. Introduces SKIP_ORDER_VALIDATION setting to bypass marketplace order-id checks while preserving JWT token introspection.