Repository navigation
fix: close AP-ISS-0197 API-route OCR findings #142
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
Open
khanhkit
wants to merge
17
commits into
main
Choose a base branch
from
kit/KitDev25/session-6
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
f706cb1
fix(memory): isolate optional rerank node listing
96810ec
fix(monitoring): harden deep health probes
2d45137
fix(openwa): require management auth for service routes
58a4f99
fix(cache): harden embedding probe credentials
b6d3071
fix(auth): atomically claim bootstrap token
d396f64
fix(authz): preserve dashboard session authority
fab384c
fix(rerank): retry strict local request dialects
3ba282f
fix(chat): enforce policy before self-hosted dispatch
b9cebc6
fix(gemini): bound inline media payloads
3e69c02
test(audit): close AP-ISS-0197 dispositions
315e10e
Merge remote-tracking branch 'origin/main' into kit/KitDev25/session-6
357ca1b
docs(audit): record AP-ISS-0197 verification
9f642a6
test(authz): preserve session sweep assertions
2f29546
fix(authz): align policy scope metadata type
e961172
test(authz): align legacy session ownership guards
1794e16
fix(security): address AP-ISS-0197 hosted review regressions
c35014d
test(auth): align legacy cache preference route fixture with peer loc…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| import { install } from "@/lib/services/installers/openwa"; | ||
| import { handleServiceInstall } from "@/app/api/services/_shared/installRoute"; | ||
| import { requireManagementAuth } from "@/lib/api/requireManagementAuth"; | ||
|
|
||
| export async function POST(request: Request): Promise<Response> { | ||
| const authError = await requireManagementAuth(request, { alwaysRequireAuth: true }); | ||
| if (authError) return authError; | ||
|
|
||
| return handleServiceInstall(request, install); | ||
| } |
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Removing the key from
CACHE_CONFIG_KEYSmakes the dashboard loadsemApiKeyas empty, butsaveSemanticCache()always sendssemanticCacheEmbeddingApiKey: semApiKey.trim() || null; any subsequent semantic-cache save therefore clears the persisted provider credential, breaking embeddings. Keep the secret out of GET while preserving it on partial updates, or distinguish “unchanged” from explicit clear in the client/API.Suggestion:
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.
Fixed at
1794e1654b92a3ff79a0abe1916d7ae096e311a8: GET continues to redactsemanticCacheEmbeddingApiKey, while a PUT carrying redactednullpreserves the stored credential. Focusedcache-config-route-8219regression verifies GET never leaks the secret and subsequent redacted save does not clear it (6/6 suite PASS).