-
Notifications
You must be signed in to change notification settings - Fork 3
Harden deployment, bootstrap credentials, and release integrity #3
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
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
167bcbd
chore: add Loupe scanner profile
edgepillar 4aaa84b
security: harden local secrets and node defaults
edgepillar 3043071
security: complete release and bootstrap hardening
edgepillar e54f52d
security: address review findings in bootstrap flow
edgepillar cac2e4e
security: harden bootstrap recovery and upgrade path
edgepillar 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
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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "max_concurrent_files": 1, | ||
| "include_extensions": ["js", "mjs", "ts", "tsx"], | ||
| "extra_source_paths": [ | ||
| "src", | ||
| "scripts/create-four-node-devnet.mjs", | ||
| "Dockerfile", | ||
| "docker-compose.yml", | ||
| "docker-compose.portainer.yml", | ||
| "docker/caddy/Caddyfile", | ||
| "vite.config.ts" | ||
| ] | ||
| } | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| # Loupe Security Scanning | ||
|
|
||
| This repository carries a Project Loupe scanner profile at | ||
| `.loupe/scanner-config.json`. The profile covers the TypeScript application | ||
| and the operational files that automatic package-root discovery would not | ||
| normally include, especially the devnet wallet-generation script, container | ||
| definitions, Caddy configuration, and Vite configuration. | ||
|
|
||
| The profile relies on per-repository scanner configuration, including | ||
| `extra_source_paths`. Use the compatible Loupe fork at | ||
| `https://github.com/edgepillar/loupe.git`, pinned to commit | ||
| `5c8744c1b2823415fe851d17bae92ff8f7193a15`. Do not silently substitute a | ||
| Loupe revision that does not implement these scanner fields. | ||
|
|
||
| ## Register the repository | ||
|
|
||
| Run these commands from a checkout of this repository after the Loupe server, | ||
| worker, and `loupectl` client are configured: | ||
|
|
||
| ```bash | ||
| loupectl repo add \ | ||
| --clone-url https://github.com/0x3639/testnet.git \ | ||
| --branch main \ | ||
| --scanner-config-file .loupe/scanner-config.json \ | ||
| --no-reporting \ | ||
| --verification-enabled \ | ||
| --require-approval | ||
| ``` | ||
|
|
||
| The safe initial policy is deliberate: | ||
|
|
||
| - `max_concurrent_files` remains `1` to bound provider usage and keep the pilot | ||
| deliberately serial. Increase it only after reviewing measured usage and | ||
| scan behavior. | ||
| - `--no-reporting` keeps findings in Loupe for manual triage until a tracker | ||
| repository and scoped GitHub token are selected. | ||
| - `--verification-enabled` asks a second agent to validate each candidate. | ||
| - `--require-approval` prevents a confirmed finding from being dispatched | ||
| without an operator decision. | ||
| - No scan interval is set, so the first runs are explicitly controlled and | ||
| their provider usage can be observed. | ||
|
|
||
| The command prints the assigned repository ID. Start the baseline scan with: | ||
|
|
||
| ```bash | ||
| loupectl repo scan <repo-id> | ||
| ``` | ||
|
|
||
| Inspect progress and results with: | ||
|
|
||
| ```bash | ||
| loupectl job list | ||
| loupectl finding list <repo-id> | ||
| loupectl finding show <finding-id> | ||
| ``` | ||
|
|
||
| After the baseline completes, scan later changes incrementally: | ||
|
|
||
| ```bash | ||
| loupectl repo scan <repo-id> --incremental | ||
| ``` | ||
|
|
||
| ## Profile lifecycle | ||
|
|
||
| Loupe stores the scanner JSON when the repository is registered. If | ||
| `.loupe/scanner-config.json` changes, reload it without discarding prior jobs | ||
| or findings: | ||
|
|
||
| ```bash | ||
| loupectl repo update <repo-id> \ | ||
| --scanner-config-file .loupe/scanner-config.json | ||
| ``` | ||
|
|
||
| Do not put Loupe credentials, API keys, GitHub tokens, wallet material, or | ||
| testnet operator secrets in this profile. |
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.
Uh oh!
There was an error while loading. Please reload this page.