-
Notifications
You must be signed in to change notification settings - Fork 6
Claude Code support #1079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: rc-v0.5.16
Are you sure you want to change the base?
Claude Code support #1079
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for Claude Code integration by implementing connector specifications, authentication strategy, sanitization rules, and documentation for accessing Claude's Admin API through the proxy.
Key Changes:
- New Claude Code connector with beta availability status
- Custom authentication strategy using admin API keys
- Sanitization rules for user data and usage reports with pseudonymization of email addresses
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| java/core/src/test/java/co/worklytics/psoxy/rules/anthropic/ClaudeTests.java | Test suite for Claude Code API endpoint validation |
| java/core/src/main/java/co/worklytics/psoxy/rules/anthropic/PrebuiltSanitizerRules.java | Sanitization rules loader for Claude Code |
| java/core/src/main/java/co/worklytics/psoxy/rules/PrebuiltSanitizerRules.java | Registration of Claude Code rules in global rules map |
| java/core/src/main/java/co/worklytics/psoxy/gateway/impl/ClaudeAuthStrategy.java | Authentication strategy implementation using x-api-key header |
| java/core/src/main/java/co/worklytics/psoxy/SourceAuthModule.java | Dependency injection provider for ClaudeAuthStrategy |
| infra/modules/worklytics-connector-specs/main.tf | Terraform connector specification with API endpoints and configuration |
| infra/modules/worklytics-connector-specs/docs/claude/instructions.tftpl | Setup instructions template for Claude Code integration |
| docs/sources/anthropic/claude-code/example-api-responses/sanitized/*.json | Sanitized example API responses showing pseudonymization |
| docs/sources/anthropic/claude-code/example-api-responses/original/*.json | Original API response examples |
| docs/sources/anthropic/claude-code/claude-code.yaml | YAML rules defining endpoints, transforms, and schemas |
| docs/sources/anthropic/claude-code/README.md | User-facing documentation for Claude Code connector |
| docs/sources/anthropic/README.md | Anthropic source category overview |
| docs/SUMMARY.md | Documentation navigation structure update |
| docs/README.md | Main README table update with Claude Code entry |
| CHANGELOG.md | Release notes for v0.5.16 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
java/core/src/main/java/co/worklytics/psoxy/gateway/impl/ClaudeAuthStrategy.java
Outdated
Show resolved
Hide resolved
| public class PrebuiltSanitizerRules { | ||
|
|
||
| static public final Map<String, RESTRules> DEFAULTS = ImmutableMap.<String, RESTRules>builder() | ||
| .putAll(co.worklytics.psoxy.rules.anthropic.PrebuiltSanitizerRules.DEFAULT_RULES_MAP) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| .putAll(co.worklytics.psoxy.rules.anthropic.PrebuiltSanitizerRules.DEFAULT_RULES_MAP) | |
| .putAll(co.worklytics.psoxy.rules.anthropic.PrebuiltClaudeRules.DEFAULT_RULES_MAP) |
Claude code support. This requires a specific auth strategy, as credentials are with a specific header, not a bearer / client credentials auth.
Docs added, example files.
Fixes
Features
claude code via proxy
Logistics
Change implications
CHANGELOG.mdanything that will show up interraform plan/applythat isn'tobviously a no-op? yes; new connector support
alpha, requires major versionchange no