Skip to content
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

feat: Search + Explain with Navie #845

Closed
wants to merge 27 commits into from
Closed

Conversation

kgilpin
Copy link
Contributor

@kgilpin kgilpin commented Nov 21, 2023

No description provided.

@@ -28,12 +29,6 @@ export default function getWebviewContent(
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dividedmind as our resident security person, and I think you added this initially, why was this added? We need to allow the UI to invoke JSON-RPC to our services.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to prevent the webview content from being coerced to load external resources, which could cause data leak or worse. I don't think it's a good idea to remove this altogether; instead a directive like connect-src http://localhost:12345; should be added. Although ideally I think the UI shouldn't talk to the services directly at all; instead the extension should intermediate.

@kgilpin kgilpin changed the title feat: Search AppMaps feat: Search + Explain with Navie Jan 8, 2024
@kgilpin
Copy link
Contributor Author

kgilpin commented Jan 10, 2024

See #859

@kgilpin kgilpin closed this Jan 10, 2024
@dividedmind dividedmind mentioned this pull request Jan 10, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants