docs: add mermaid diagram rendering for Astro Starlight site#62
Merged
docs: add mermaid diagram rendering for Astro Starlight site#62
Conversation
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix rendering of mermaid diagram in astro documentation
docs: add mermaid diagram rendering for Astro Starlight site
Nov 26, 2025
Mossaka
added a commit
that referenced
this pull request
Feb 12, 2026
Sensitive tokens (GITHUB_TOKEN, ANTHROPIC_API_KEY, etc.) are written in plaintext to docker-compose.yml inside the workDir (/tmp/awf-*). Since the agent container mounts /tmp:/tmp:rw, any code inside the container could read these secrets via `cat /tmp/awf-*/docker-compose.yml`. Primary fix: Add tmpfs overlay on workDir (same pattern as mcp-logs hiding) so the agent sees an empty in-memory filesystem instead of the real directory containing docker-compose.yml with all tokens. Secondary fix (defense-in-depth): Restrict file permissions on workDir (0o700) and config files (0o600) so non-root processes on the host cannot read them either. Both normal mode and chroot mode are covered with appropriate paths. Closes #62, closes #206, closes #210 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5 tasks
lpcox
pushed a commit
that referenced
this pull request
Feb 12, 2026
) * fix: hide workDir from agent container to prevent secrets exposure Sensitive tokens (GITHUB_TOKEN, ANTHROPIC_API_KEY, etc.) are written in plaintext to docker-compose.yml inside the workDir (/tmp/awf-*). Since the agent container mounts /tmp:/tmp:rw, any code inside the container could read these secrets via `cat /tmp/awf-*/docker-compose.yml`. Primary fix: Add tmpfs overlay on workDir (same pattern as mcp-logs hiding) so the agent sees an empty in-memory filesystem instead of the real directory containing docker-compose.yml with all tokens. Secondary fix (defense-in-depth): Restrict file permissions on workDir (0o700) and config files (0o600) so non-root processes on the host cannot read them either. Both normal mode and chroot mode are covered with appropriate paths. Closes #62, closes #206, closes #210 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: address review comments and fix Java workflow Maven proxy - Improve tmpfs comment to clarify two separate security measures (mcp-logs hiding vs workDir hiding) and note that volume mounts to different container paths are unaffected by the tmpfs overlay - Update types.ts tmpfs docstring per review feedback - Fix build-test-java.md: use literal proxy values (squid-proxy:3128) instead of shell variables ${SQUID_PROXY_HOST}/${SQUID_PROXY_PORT} which AI agents write literally without expansion, causing Maven NumberFormatException Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.
Mermaid diagrams in the documentation were rendering as raw code blocks instead of visual diagrams.
Changes
astro-mermaid@1.1.0andmermaid@11.12.1mermaid()beforestarlight()inastro.config.mjs(order matters)styledirectives from sequenceDiagram insecurity-architecture.md(style only works in flowcharts)Result
All 8 mermaid diagrams now render properly:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com//advisories/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(http block)telemetry.astro.build/usr/local/bin/node node /home/REDACTED/work/gh-aw-firewall/gh-aw-firewall/docs-site/node_modules/.bin/astro build(dns block)/usr/local/bin/node node /home/REDACTED/work/gh-aw-firewall/gh-aw-firewall/docs-site/node_modules/.bin/astro preview --port 4321(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.