Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion .github/scripts/generate_thymeleaf_previews.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ def add_static_assets_challenge58(self, content):

/* Challenge 58 specific styles */
.demo-section {{
background: #fff3cd;
border: 1px solid #ffeaa7;
border-radius: 6px;
padding: 15px;
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/github-pages-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: GitHub Pages PR Preview

on:
pull_request:
types: [opened, synchronize, reopened, closed]
paths:
- 'src/main/resources/templates/**'
- 'src/main/resources/static/**'
Expand Down
3 changes: 3 additions & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ https://medium.com/sweetmeat/how-to-keep-a-downstream-git-repository-current-wit

# Issues with lychee:
https://github.com/topics/secrets-detection

# Helm docs are flaky in CI (connection resets)
https://helm.sh/docs/intro/install/
3 changes: 1 addition & 2 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<gatling.version>3.14.9</gatling.version>
<gcp.sdk.version>7.4.5</gcp.sdk.version>
<github.button.version>2.14.1</github.button.version>
<io.netty.version>4.1.118.Final</io.netty.version>
<io.netty.version>4.1.123.Final</io.netty.version>
<java.version>25</java.version>
<jquery.version>3.7.1</jquery.version>
<jruby.version>10.0.3.0</jruby.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<button onclick="sendMessage()" data-cy="chat-send-btn" style="padding: 8px 16px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer;">Send</button>
</div>

<div style="margin-top: 10px; font-size: 12px; color: #666;">
<div class="chat-tip" style="margin-top: 10px; font-size: 12px; color: #666;">
💡 Tip: This AI has been given specific instructions. Try exploring what it knows!
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<h4>🗄️ Database Connection Error Demo</h4>
<p>This challenge demonstrates how database connection failures can expose sensitive credentials through error messages.</p>

<div style="background: #fff3cd; border: 1px solid #ffeaa7; border-radius: 6px; padding: 15px; margin: 15px 0;">
<div class="db-warning" style="border: 1px solid #ffeaa7; border-radius: 6px; padding: 15px; margin: 15px 0;">
<p><strong>Try the vulnerable endpoint:</strong></p>
<p>Click the button below to trigger a database connection error that exposes the connection string with embedded credentials.</p>
<a href="/error-demo/database-connection" class="btn btn-warning" style="background-color: #ffc107; border-color: #ffc107; color: #212529; text-decoration: none; display: inline-block; padding: 8px 16px; border-radius: 4px; border: 1px solid transparent; font-weight: 400; text-align: center; vertical-align: middle; cursor: pointer; font-size: 1rem; line-height: 1.5; margin-top: 10px;">
🚨 Trigger Database Connection Error
</a>
<p style="margin-top: 10px;"><small style="color: #666;">This endpoint simulates a database connection failure that exposes the connection string with embedded credentials.</small></p>
<p style="margin-top: 10px;"><small class="db-warning-text" style="color: #666;">This endpoint simulates a database connection failure that exposes the connection string with embedded credentials.</small></p>
</div>

<div style="margin-top: 15px; font-size: 12px; color: #666;">
<div class="db-tip" style="margin-top: 15px; font-size: 12px; color: #666;">
💡 Tip: Look for the database password in the error message or application logs.
</div>
</div>
61 changes: 61 additions & 0 deletions src/main/resources/static/css/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,64 @@
.dark-mode .text-muted {
color: var(--bs-gray-300) !important;
}

.dark-mode #llm-challenge-container {
background-color: #1f1f1f !important;
border-color: var(--bs-gray-700) !important;
color: var(--bs-body-color);
}

.dark-mode #llm-challenge-container h4,
.dark-mode #llm-challenge-container p {
color: var(--bs-body-color);
}

.dark-mode #chat-history {
background-color: #1a1a1a !important;
border-color: var(--bs-gray-700) !important;
}

.dark-mode #chat-history .ai-message {
background-color: #2a2a2a !important;
color: var(--bs-body-color);
}

.dark-mode #chat-history .user-message {
background-color: #243548 !important;
color: var(--bs-body-color);
}

.dark-mode #llm-challenge-container input[type="text"] {
border-color: var(--bs-gray-700) !important;
}

.dark-mode #llm-challenge-container button {
background-color: var(--bs-primary) !important;
border-color: var(--bs-primary) !important;
}

.dark-mode #llm-challenge-container .chat-tip {
color: var(--bs-gray-300) !important;
}

.dark-mode #database-challenge-container {
background-color: #1f1f1f !important;
border-color: var(--bs-gray-700) !important;
color: var(--bs-body-color);
}

.dark-mode #database-challenge-container h4,
.dark-mode #database-challenge-container p {
color: var(--bs-body-color);
}

.dark-mode #database-challenge-container .db-warning {
background-color: #2a2412 !important;
border-color: #6a5a2a !important;
color: var(--bs-body-color);
}

.dark-mode #database-challenge-container .db-warning-text,
.dark-mode #database-challenge-container .db-tip {
color: var(--bs-gray-300) !important;
}
38 changes: 38 additions & 0 deletions static-site/pr-2125/pages/challenge-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,44 @@
border-color: white;
}

.dark-mode #llm-challenge-container {
background-color: #1f1f1f;
border-color: var(--bs-gray-700);
color: var(--bs-body-color);
}

.dark-mode #llm-challenge-container h4,
.dark-mode #llm-challenge-container p {
color: var(--bs-body-color);
}

.dark-mode #chat-history {
background-color: #1a1a1a;
border-color: var(--bs-gray-700);
}

.dark-mode #chat-history .ai-message {
background-color: #2a2a2a;
color: var(--bs-body-color);
}

.dark-mode #chat-history .user-message {
background-color: #243548;
color: var(--bs-body-color);
}

.dark-mode .chat-input {
border-color: var(--bs-gray-700);
}

.dark-mode .chat-send-btn {
background-color: var(--bs-primary);
}

.dark-mode .chat-tip {
color: var(--bs-gray-300);
}



/* Bootstrap CSS (minimal) */
Expand Down
Loading