feat: add connections spec for third-party OAuth credentials - #6
Merged
Conversation
Adds a first-class `connections` field to the Instance CRD that configures OAuth provider credentials for the Paperclip connections system (GitHub, GitLab, Slack, etc.). - ConnectionsSpec with credentialsSecretRef and optional providersConfigRef - Injects PAPERCLIP_OAUTH_CREDENTIALS from Secret into container env - Optional PAPERCLIP_OAUTH_PROVIDERS from ConfigMap for custom providers - 4 new unit tests covering all combinations - Updated public sample with example OAuth Secret - Regenerated CRD manifests and Helm chart CRDs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Extract PAPERCLIP_OAUTH_CREDENTIALS/PROVIDERS to constants (goconst) - Preallocate volume mounts slice (prealloc) - Suppress gosec false positive on env var name constant Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stubbi
enabled auto-merge (squash)
March 23, 2026 15:46
CI runs gosec standalone (not via golangci-lint), which requires the #nosec G101 comment format instead of //nolint:gosec. 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.
Summary
connectionsfield to the Instance CRD for configuring OAuth provider credentialsPAPERCLIP_OAUTH_CREDENTIALSfrom a referenced Secret into the Paperclip containerPAPERCLIP_OAUTH_PROVIDERSfrom a ConfigMap for custom provider definitionsUsage
With a Secret containing:
OAuth callback URL must be registered with each provider as:
https://<your-public-url>/api/connections/callbackTest plan
🤖 Generated with Claude Code