Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
b84a78b
docs: add guide materials for Griffin WordPress GKE and Terraform GCP…
myoshi2891 Jul 29, 2026
bb31852
fix: harden Griffin HTML guide accessibility
myoshi2891 Jul 30, 2026
7da4a0c
docs: normalize Griffin Markdown formatting
myoshi2891 Jul 30, 2026
32f68a4
fix: highlight Terraform guide code blocks
myoshi2891 Jul 30, 2026
e04e17b
docs: label Terraform state prompt fence
myoshi2891 Jul 30, 2026
552e228
fix(griffin): improve guide navigation accessibility
myoshi2891 Jul 30, 2026
32d1e7a
fix(security): add SRI and crossorigin attributes to highlight.js ass…
myoshi2891 Jul 30, 2026
0207c8c
fix(terraform): update instance module variables and network interfac…
myoshi2891 Jul 30, 2026
5c21536
docs(gcl): update custom VPC rationale and transit routing for Griffi…
myoshi2891 Jul 30, 2026
25f7bd8
docs(html): update code syntax highlighting and mermaid fallback loader
myoshi2891 Jul 30, 2026
6c9521d
docs(html): update Terraform guide code highlighting and mermaid fall…
myoshi2891 Jul 30, 2026
158d213
fix(gcp-bastion): correct SSH sequence flow origin from Bastion to Juice
myoshi2891 Jul 31, 2026
53e25a5
fix(griffin): update route next-hops, sanitize DB password/uptime hos…
myoshi2891 Jul 31, 2026
1b2cc25
fix(terraform-lab): integrate highlight.js with HCL language registra…
myoshi2891 Jul 31, 2026
91726b5
test(gcl-hands-on): add failing tests for GKE private cluster securit…
myoshi2891 Aug 1, 2026
5648226
feat(gcl-hands-on): implement GKE private cluster security guide page…
myoshi2891 Aug 1, 2026
ab43e53
refactor(gcl-hands-on): integrate GKE private cluster security guide …
myoshi2891 Aug 1, 2026
1cf0839
chore(docs): update MIGRATION_PROGRESS.md and archive GKE private clu…
myoshi2891 Aug 1, 2026
a50323b
test(gcl-hands-on): add failing tests for layout width, code highligh…
myoshi2891 Aug 1, 2026
3ccfb49
feat(gcl-hands-on): expand main layout width, add syntax highlighting…
myoshi2891 Aug 1, 2026
0e767c6
refactor(gcl-hands-on): polish layout and diagram text scaling
myoshi2891 Aug 1, 2026
4e81cde
chore(docs): update MIGRATION_PROGRESS.md with full-width layout and …
myoshi2891 Aug 1, 2026
6243400
test: add failing tests for terraform-gcp-challenge-lab-guide
myoshi2891 Aug 1, 2026
7204a63
feat: implement terraform-gcp-challenge-lab-guide Next.js component t…
myoshi2891 Aug 1, 2026
03a021a
refactor: integrate terraform-gcp-challenge-lab-guide into routing an…
myoshi2891 Aug 1, 2026
47f8486
fix: add required ariaLabel props to MermaidDiagram components
myoshi2891 Aug 1, 2026
cec199b
feat: restore sidebar navigation, syntax highlighting, and complete f…
myoshi2891 Aug 1, 2026
239b3d5
refactor: format code blocks with code-line for strict indentation pr…
myoshi2891 Aug 1, 2026
ac1bec1
test(gcl-hands-on): strengthen guide accessibility coverage
myoshi2891 Aug 1, 2026
5f240d4
fix(gcl-hands-on): improve guide accessibility and type safety
myoshi2891 Aug 1, 2026
d819088
fix(gcl-hands-on): align guide styles with shared tokens
myoshi2891 Aug 1, 2026
6d3c9f1
fix(gcl-hands-on): restore Terraform guide details
myoshi2891 Aug 1, 2026
b8844ad
docs: list Terraform challenge lab guide
myoshi2891 Aug 1, 2026
9bd9a31
fix(docs): align uptime check host variable
myoshi2891 Aug 2, 2026
f83dd7d
chore(docs): track GKE security guide archives
myoshi2891 Aug 2, 2026
00e973f
docs(archive): remove obsolete terraform gcp challenge lab html guide
myoshi2891 Aug 2, 2026
b88512c
docs(gcp): add Manage Kubernetes in Google Cloud guide (HTML & MD)
myoshi2891 Aug 2, 2026
30efe3f
test(gcl-hands-on): add failing tests for griffin wordpress gke guide…
myoshi2891 Aug 2, 2026
7ac04cd
feat(gcl-hands-on): implement griffin wordpress gke guide page to pas…
myoshi2891 Aug 2, 2026
e17d1e8
refactor(gcl-hands-on): integrate griffin wordpress gke guide into ro…
myoshi2891 Aug 2, 2026
bd51396
chore(docs): update MIGRATION_PROGRESS.md and archive griffin wordpre…
myoshi2891 Aug 2, 2026
431e17c
fix(gke): align private cluster guide content
myoshi2891 Aug 2, 2026
d4e41b8
fix(terraform): improve guide accessibility
myoshi2891 Aug 2, 2026
5ae5d57
fix(gcl): include project in uptime check
myoshi2891 Aug 2, 2026
df68dac
fix(gcl): harden kubernetes guide HTML
myoshi2891 Aug 2, 2026
bd1f4fc
docs(gcl): align kubernetes guide checks
myoshi2891 Aug 2, 2026
a3e69a0
docs: add Cymbal Direct Agent Platform prompt design challenge lab guide
myoshi2891 Aug 2, 2026
dd7b124
fix(hands-on): update GKE security, Griffin WordPress, and Terraform …
myoshi2891 Aug 3, 2026
3a9ee95
docs: update Kubernetes logging metric guide and CLAUDE.md structure
myoshi2891 Aug 3, 2026
2f450de
docs: add Gemini API challenge lab best practices guide
myoshi2891 Aug 3, 2026
1e067d2
style(docs): wrap checkbox inputs with label elements in prompt desig…
myoshi2891 Aug 3, 2026
dc293af
docs: refine markdown headings and add language specifier in challeng…
myoshi2891 Aug 3, 2026
61eecfa
fix(gcl): update subnet map self-link references in terraform GCP cha…
myoshi2891 Aug 3, 2026
42533fa
📝 Add docstrings to `dev`
coderabbitai[bot] Aug 3, 2026
caf5c8b
📝 Add docstrings to `dev`
coderabbitai[bot] Aug 3, 2026
62eb50d
Merge pull request #117 from myoshi2891/coderabbitai/docstrings/42533fa
myoshi2891 Aug 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 134 additions & 41 deletions Gcp-bastion-iap-firewall-best-practices.html
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,12 @@

.mermaid-scroll {
overflow-x: auto;
margin: 20px 0;
margin: 20px 0 12px;
background: var(--color-background-secondary);
border: 1px solid var(--color-border-primary);
border-radius: var(--border-radius-lg);
padding: 24px 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.mermaid {
display: flex;
Expand All @@ -386,6 +391,59 @@
flex-shrink: 0;
display: block;
}
.mermaid svg text,
.mermaid svg .label {
font-family: var(--font-sans) !important;
font-size: 14px !important;
fill: #ffffff !important;
font-weight: 500 !important;
}
.mermaid svg .edgeLabel,
.mermaid svg .edgeLabel span,
.mermaid svg .edgeLabel rect {
background-color: var(--color-background-tertiary) !important;
color: #a5c7ff !important;
fill: var(--color-background-tertiary) !important;
padding: 4px 8px !important;
border-radius: 6px !important;
font-size: 13px !important;
font-weight: 600 !important;
}
.mermaid svg .cluster rect {
fill: rgba(18, 37, 66, 0.6) !important;
stroke: #3b629b !important;
stroke-width: 1.5px !important;
rx: 8px !important;
}
.mermaid svg .cluster text,
.mermaid svg .cluster span,
.mermaid svg .cluster tspan {
fill: #9bc2ff !important;
color: #9bc2ff !important;
font-weight: 700 !important;
font-size: 14px !important;
}
.mermaid svg .actor {
fill: #142a4a !important;
stroke: #5c8bd6 !important;
stroke-width: 2px !important;
}
.mermaid svg .actor text,
.mermaid svg .actor tspan {
fill: #ffffff !important;
font-weight: 600 !important;
}
.mermaid svg .messageText {
fill: #d0e1ff !important;
font-size: 13px !important;
font-weight: 500 !important;
}
.mermaid svg .node rect,
.mermaid svg .node circle,
.mermaid svg .node polygon,
.mermaid svg .node path {
stroke-width: 2px !important;
}

.diagram-caption {
display: flex;
Expand Down Expand Up @@ -1252,62 +1310,76 @@ <h2>

<script type="text/plain" class="mermaid-src" data-target="mermaid-before">
flowchart TD
Internet["Internet 0.0.0.0/0"]
FWssh["既存ルール: SSH tcp:22 from 0.0.0.0/0 全世界に開放"]
FWhttp["既存ルール: HTTP tcp:80 from 0.0.0.0/0"]
Bastion["bastion VM 外部IPあり"]
JuiceShop["juice-shop VM 外部IPあり"]
classDef danger fill:#3a1620,stroke:#ff6b6b,stroke-width:2px,color:#ffffff;
classDef warning fill:#3a2c12,stroke:#f0c674,stroke-width:2px,color:#ffffff;
classDef net fill:#142a4a,stroke:#5c8bd6,stroke-width:1.5px,color:#ffffff;

Internet["Internet (0.0.0.0/0)"]:::net
FWssh["既存ルール: SSH tcp:22 from 0.0.0.0/0<br/>(全世界に開放)"]:::danger
FWhttp["既存ルール: HTTP tcp:80 from 0.0.0.0/0"]:::warning
Bastion["bastion VM (外部IPあり)"]:::warning
JuiceShop["juice-shop VM (外部IPあり)"]:::danger

Internet --> FWssh
FWssh --> Bastion
FWssh -.->|"タグ次第では直接到達も"| JuiceShop
FWssh -.->|"危険: タグ次第で直接到達可能"| JuiceShop
Internet --> FWhttp
FWhttp --> JuiceShop
</script>

<script type="text/plain" class="mermaid-src" data-target="mermaid-after">
flowchart TD
subgraph INTERNET["インターネット"]
Admin["管理者 gcloud / Cloud Console"]
PublicUser["一般ユーザー"]
classDef user fill:#14304d,stroke:#5c8bd6,stroke-width:2px,color:#ffffff;
classDef iap fill:#2d1b4e,stroke:#c084fc,stroke-width:2px,color:#ffffff;
classDef bastion fill:#0f382c,stroke:#4ade80,stroke-width:2px,color:#ffffff;
classDef juice fill:#0f2d4a,stroke:#38bdf8,stroke-width:2px,color:#ffffff;

subgraph INTERNET["インターネット環境"]
Admin["管理者 (gcloud / Console)"]:::user
PublicUser["一般ユーザー"]:::user
end

subgraph GOOGLEIAP["Google管理のIAP送信元 35.235.240.0/20"]
IAP["Identity-Aware Proxy"]
subgraph GOOGLEIAP["Google IAP ゾーン (35.235.240.0/20)"]
IAP["Identity-Aware Proxy"]:::iap
end

subgraph VPCNET["acme-vpc ネットワーク"]
Bastion["bastion タグ: ssh-iap 外部IPなし"]
JuiceShop["juice-shop タグ: http-server, ssh-internal"]
subgraph VPCNET["VPC ネットワーク (acme-vpc)"]
Bastion["bastion VM<br/>タグ: ssh-iap<br/>(外部IPなし)"]:::bastion
JuiceShop["juice-shop VM<br/>タグ: http-server, ssh-internal"]:::juice
end

Admin -->|"HTTPS 暗号化トンネル"| IAP
IAP -->|"許可 tcp:22 from 35.235.240.0/20"| Bastion
Bastion -->|"許可 tcp:22 from acme-mgmt-subnet"| JuiceShop
PublicUser -->|"許可 tcp:80 from 0.0.0.0/0"| JuiceShop
Admin -->|"1. HTTPSトンネル"| IAP
IAP -->|"2. 許可 tcp:22 (IAP固定レンジ)"| Bastion
Bastion -->|"3. 許可 tcp:22 (acme-mgmt-subnet)"| JuiceShop
PublicUser -->|"許可 tcp:80 (0.0.0.0/0)"| JuiceShop
</script>

<script type="text/plain" class="mermaid-src" data-target="mermaid-taskorder">
flowchart LR
A["1. 過剰なルールの削除"] --> B["2. bastion起動"]
B --> C["3. IAP用SSHルール作成 + タグ付与"]
C --> D["4. HTTP用ルール作成 + タグ付与"]
D --> E["5. 内部SSH用ルール作成 + タグ付与"]
E --> F["6. IAP経由で接続確認"]
classDef step fill:#142a4a,stroke:#5c8bd6,stroke-width:2px,color:#ffffff;
classDef dangerStep fill:#3a1620,stroke:#ff6b6b,stroke-width:2px,color:#ffffff;
classDef finishStep fill:#0f382c,stroke:#4ade80,stroke-width:2px,color:#ffffff;

A["1. 過剰ルールの削除"]:::dangerStep --> B["2. bastion起動"]:::step
B --> C["3. IAP用SSHルール作成 + タグ付与"]:::step
C --> D["4. HTTP用ルール作成 + タグ付与"]:::step
D --> E["5. 内部SSH用ルール作成 + タグ付与"]:::step
E --> F["6. IAP経由で接続確認"]:::finishStep
</script>

<script type="text/plain" class="mermaid-src" data-target="mermaid-sequence">
sequenceDiagram
participant Admin as "管理者"
participant IAP as "Identity-Aware Proxy"
participant Bastion as "bastion VM"
participant Juice as "juice-shop VM"
autonumber
actor Admin as 管理者
participant IAP as Identity-Aware Proxy
participant Bastion as bastion VM
participant Juice as juice-shop VM

Admin->>IAP: "gcloud compute ssh bastion --tunnel-through-iap"
IAP->>Bastion: "暗号化トンネル経由でtcp:22"
Bastion-->>Admin: "シェル取得"
Admin->>Juice: "bastion上からssh 内部IP"
Juice-->>Admin: "シェル取得"
Admin->>IAP: gcloud compute ssh bastion --tunnel-through-iap
IAP->>Bastion: 暗号化トンネル経由で SSH (tcp:22)
Bastion-->>Admin: bastion シェルセッション確立
Admin->>Juice: ssh <juice-shop内部IP>
Juice-->>Admin: juice-shop シェルセッション確立
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
</script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
Expand Down Expand Up @@ -1364,14 +1436,35 @@ <h2>
},
sequence: { useMaxWidth: false },
themeVariables: {
background: '#07111e',
primaryColor: '#122542',
primaryTextColor: '#e8edf5',
primaryBorderColor: '#2a4269',
lineColor: '#4a6790',
secondaryColor: '#14304d',
tertiaryColor: '#0c1a2e',
fontSize: '16px',
darkMode: true,
background: 'transparent',
primaryColor: '#142a4a',
primaryTextColor: '#ffffff',
primaryBorderColor: '#5c8bd6',
lineColor: '#7aa5e5',
secondaryColor: '#1f3a5f',
tertiaryColor: '#0e1f36',
tertiaryTextColor: '#ffffff',
fontSize: '14px',
subgraphBkg: 'rgba(18, 37, 66, 0.6)',
subgraphBorderColor: '#3b629b',
subgraphTextColor: '#9bc2ff',
nodeBorder: '#5c8bd6',
nodeTextColor: '#ffffff',
edgeLabelBackground: '#122542',
actorBkg: '#142a4a',
actorBorder: '#5c8bd6',
actorTextColor: '#ffffff',
actorLineColor: '#7aa5e5',
signalColor: '#7aa5e5',
signalTextColor: '#ffffff',
labelBoxBkgColor: '#142a4a',
labelBoxBorderColor: '#5c8bd6',
labelTextColor: '#ffffff',
loopTextColor: '#ffffff',
noteBkgColor: '#142a4a',
noteBorderColor: '#5c8bd6',
noteTextColor: '#ffffff',
},
});

Expand Down
Loading