Repository navigation
refactor: remove v1 identity remnants (WP03) - #109
Merged
Merged
Conversation
Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
|
Caution Review failedThe pull request is closed. |
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
Removes the v1 SPIFFE/OPA/delegation code paths and the A2A document mode that forwarded the caller's raw bearer token, per WP03 of the zero-trust v2 plan.
DelegationContext/DelegationTransport,x-delegation-*handling,FetchDocument/ProcessLLM/ExtractDocumentIDare deleted. Every A2A message goes throughProcessMessage; a nil processor yieldsagent not configured.http.Client; no bearer token is forwarded; phase 1 always has a single-shotProcessMessage.mock_spiffe,spiffe.*,opa.*, the--mock-spiffe/--opa-host/--opa-portflags, SVID/authorization/delegation metrics,ComponentOPA*, andLogger.SVIDare gone.Acceptance grep
spiffe|\bopa\b|x-delegation|delegationover Go code returns no matches.Deviations
message.gowas deleted wholesale; besidesExtractDocumentIDit only held the caller-lessExtractReviewType.ProcessMessageusesselectPrompt(...) + skillsSummaryinstead of the baresystemPrompt, so prompt variants keep working andselectPromptis not dead code.TestSingleShotProcessMessage_UsesCompleteis deferred to WP06 because the closure is still inline inrunServe.Test plan
go test ./internal/bridge/ -v— 3/3 pass (red first)make fmt lint test— cleango build ./... && go test ./...— greendocsclaw servesmoke test against a document service🤖 Generated with Claude Code