Skip to content

Protect local notebook access and add security checks - #2

Merged
tryskian merged 1 commit into
mainfrom
codex/bigbrain/security-hardening
Nov 28, 2026
Merged

tryskian merged 1 commit into
mainfrom
codex/bigbrain/security-hardening

Conversation

@tryskian

Copy link
Copy Markdown
Owner

DevNotes now requires a local capability for notebook API requests, validates Host and approved page origins, and keeps approval management on its local dashboard. The loader carries the capability, and thumbnail capture accepts only approved HTTP(S) pages. Existing notebook data and Beta 3 behaviour are preserved.

Adds CI and weekly dependency updates. Validation: three server/security tests, syntax checks, npm audit, and a browser check covering site approval, authenticated loading, unauthorized access rejection, typing and Beta 3. Existing loader bookmarks need refreshing once after the update.


async function request(path, options) {
const response = await fetch(`${origin}${path}`, options);
const response = await fetch(`${origin}${path}`, { ...options, headers: { ...options?.headers, Authorization: `Bearer ${token}` } });
Comment thread tests/note-deletion.test.mjs Dismissed
@tryskian
tryskian merged commit 6354eba into main Nov 28, 2026
4 checks passed
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