Runway 1.0.0

This commit is contained in:
Runway committed 2026-10-21 11:34:34 -06:00
commit dcf819146b
1372 files changed
+188168

No files matched your search

@@ -0,0 +1,77 @@
<!-- App-realm Essential Protection panel — rendered BELOW the generic (rate-limit) settings form on
/__app/plugins/protection/settings, and ONLY there (a realm-scoped admin-app fragment: the app plugin-settings
page keys off this file, never the tenant-oriented admin.html, so app-level login config never leaks into a
tenant console). Bare fragment; binding in admin-app.th.xml via ${@appProtectionPanel.*}. Immediate apply — the
form POSTs to /__app/protection and the login gate/form guard read the new values on the next login, no restart. -->
<div class="card mt-3" id="pr-panel">
<div class="card-header"><h3 class="card-title" id="pr-heading">Login protection</h3></div>
<div class="card-body">
<div class="text-secondary mb-3" id="pr-intro-text">These settings govern the operator login. Changes apply
immediately — the next login attempt is evaluated against them, with no restart.</div>
<div class="alert alert-warning" id="pr-nocipher" role="alert">
<span id="pr-nocipher-text">No encryption key is configured, so a captcha secret cannot be stored.
Configure runway.security.secret-key to enable it.</span>
</div>
<form method="post" action="/__app/protection">
<input id="pr-csrf" type="hidden" name="_csrf" value="">
<h4 class="mt-1 mb-2" id="pr-l-honeypot-card">Deterrents</h4>
<label class="form-check form-switch mb-1">
<input id="pr-honeypot" class="form-check-input" type="checkbox" name="honeypotEnabled" value="true">
<span class="form-check-label" id="pr-honeypot-lbl">Enable the hidden honeypot field</span>
</label>
<small class="form-hint d-block mb-4" id="pr-honeypot-hint">A trap field a human never fills; a bot that
fills it is rejected.</small>
<h4 class="mb-2" id="pr-l-lockout-card">Per-IP lockout</h4>
<div class="mb-3">
<label class="form-label" id="pr-l-attempts" for="pr-attempts">Max attempts</label>
<input class="form-control" id="pr-attempts" name="maxAttempts" type="number" min="1" value="">
<small class="form-hint" id="pr-h-attempts">Failed logins within the window before the IP is locked.</small>
</div>
<div class="mb-3">
<label class="form-label" id="pr-l-window" for="pr-window">Window (seconds)</label>
<input class="form-control" id="pr-window" name="windowSeconds" type="number" min="1" value="">
<small class="form-hint" id="pr-h-window">The sliding window over which failures accumulate.</small>
</div>
<div class="mb-4">
<label class="form-label" id="pr-l-lockout" for="pr-lockout">Lockout (seconds)</label>
<input class="form-control" id="pr-lockout" name="lockoutSeconds" type="number" min="1" value="">
<small class="form-hint" id="pr-h-lockout">How long an IP stays locked once the threshold is reached.</small>
</div>
<h4 class="mb-2" id="pr-l-captcha-card">External CAPTCHA</h4>
<label class="form-check form-switch mb-3">
<input id="pr-captcha" class="form-check-input" type="checkbox" name="captchaEnabled" value="true">
<span class="form-check-label" id="pr-captcha-lbl">Require a CAPTCHA challenge</span>
</label>
<div class="mb-3">
<label class="form-label" id="pr-l-provider" for="pr-provider">Provider</label>
<select id="pr-provider" name="provider" class="form-select">
<option id="pr-provider-opt" value="">provider</option>
</select>
</div>
<div class="mb-3">
<label class="form-label" id="pr-l-siteKey" for="pr-siteKey">Site key (public)</label>
<input class="form-control" id="pr-siteKey" name="siteKey" type="text" value="">
<small class="form-hint" id="pr-h-siteKey">The public site key rendered into the challenge widget.</small>
</div>
<div class="mb-3">
<label class="form-label" id="pr-l-secretKey" for="pr-secretKey">Secret key</label>
<input class="form-control" id="pr-secretKey" name="secretKey" type="password" value="" autocomplete="off">
<small class="form-hint" id="pr-h-secretKey">Verified server-side, stored encrypted. Leave blank to
keep the current secret.</small>
</div>
<div class="mb-4">
<label class="form-label" id="pr-l-score" for="pr-score">Score threshold (reCAPTCHA v3)</label>
<input class="form-control" id="pr-score" name="scoreThreshold" type="number" min="0" max="1"
step="0.05" value="">
<small class="form-hint" id="pr-h-score">The minimum score a v3 response must meet (0.0–1.0).</small>
</div>
<button type="submit" class="btn btn-primary" id="pr-save">Save</button>
</form>
</div>
</div>
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
App-realm Essential Protection panel logic. This fragment renders on the KERNEL-owned plugin settings page
(/__app/plugins/protection/settings), which does not populate the plugin's model — so every field pre-fills from
the plugin's own bean via ${@appProtectionPanel.*} (not controller-set attributes). The captcha SECRET is never
written into the input (value stays empty); a "configured" placeholder is shown, and a blank submit keeps it. The
_csrf token comes from the enclosing page. ids are global selectors, so `/` vs `//` doesn't apply.
-->
<thlogic>
<attr sel="#pr-heading" th:text="#{protection.screen.heading}"/>
<attr sel="#pr-intro-text" th:text="#{protection.screen.app.intro}"/>
<!-- The "no encryption key" hint is REMOVED when a cipher is available (so the alert only shows when needed). -->
<attr sel="#pr-nocipher" th:if="${!@appProtectionPanel.secretStorable()}"/>
<attr sel="#pr-nocipher-text" th:text="#{protection.screen.noCipher}"/>
<attr sel="#pr-csrf"
th:attr="name=${_csrf != null ? _csrf.parameterName : '_csrf'},value=${_csrf != null ? _csrf.token : ''}"/>
<attr sel="#pr-l-honeypot-card" th:text="#{protection.screen.deterrents}"/>
<attr sel="#pr-honeypot" th:checked="${@appProtectionPanel.honeypotEnabled()}"/>
<attr sel="#pr-honeypot-lbl" th:text="#{protection.screen.honeypot}"/>
<attr sel="#pr-honeypot-hint" th:text="#{protection.screen.honeypot.hint}"/>
<attr sel="#pr-l-lockout-card" th:text="#{protection.screen.lockout}"/>
<attr sel="#pr-l-attempts" th:text="#{protection.screen.attempts}"/>
<attr sel="#pr-attempts" th:value="${@appProtectionPanel.maxAttempts()}"/>
<attr sel="#pr-h-attempts" th:text="#{protection.screen.attempts.hint}"/>
<attr sel="#pr-l-window" th:text="#{protection.screen.window}"/>
<attr sel="#pr-window" th:value="${@appProtectionPanel.windowSeconds()}"/>
<attr sel="#pr-h-window" th:text="#{protection.screen.window.hint}"/>
<attr sel="#pr-l-lockout" th:text="#{protection.screen.lockoutSecs}"/>
<attr sel="#pr-lockout" th:value="${@appProtectionPanel.lockoutSeconds()}"/>
<attr sel="#pr-h-lockout" th:text="#{protection.screen.lockoutSecs.hint}"/>
<attr sel="#pr-l-captcha-card" th:text="#{protection.screen.captcha}"/>
<attr sel="#pr-captcha" th:checked="${@appProtectionPanel.captchaEnabled()}"/>
<attr sel="#pr-captcha-lbl" th:text="#{protection.screen.captcha.enable}"/>
<attr sel="#pr-l-provider" th:text="#{protection.screen.provider}"/>
<attr sel="#pr-provider-opt" th:each="p : ${@appProtectionPanel.providers()}" th:value="${p}" th:id="${null}"
th:text="#{'protection.screen.provider.' + ${p}}" th:selected="${p == @appProtectionPanel.provider()}"/>
<attr sel="#pr-l-siteKey" th:text="#{protection.screen.siteKey}"/>
<attr sel="#pr-siteKey" th:value="${@appProtectionPanel.siteKey()}"/>
<attr sel="#pr-h-siteKey" th:text="#{protection.screen.siteKey.hint}"/>
<attr sel="#pr-l-secretKey" th:text="#{protection.screen.secretKey}"/>
<!-- The secret is MASKED: no value ever goes into the input. The placeholder tells the operator whether one is
stored; leaving the field blank on submit keeps it. Dedicated th:placeholder (not th:attr — th:attr forbids
@bean access in its restricted context, pitfall). -->
<attr sel="#pr-secretKey"
th:placeholder="${@appProtectionPanel.secretConfigured()} ? #{protection.screen.secretKey.set} : #{protection.screen.secretKey.unset}"/>
<attr sel="#pr-h-secretKey" th:text="#{protection.screen.secretKey.hint}"/>
<attr sel="#pr-l-score" th:text="#{protection.screen.score}"/>
<attr sel="#pr-score" th:value="${@appProtectionPanel.scoreThreshold()}"/>
<attr sel="#pr-h-score" th:text="#{protection.screen.score.hint}"/>
<attr sel="#pr-save" th:text="#{protection.screen.save}"/>
</thlogic>
@@ -0,0 +1,144 @@
<!DOCTYPE html>
<html lang="en">
<head><meta charset="utf-8"><title>DoS activity</title></head>
<body>
<div id="content">
<div class="page-header d-print-none mb-3">
<div class="row align-items-center">
<div class="col">
<div class="page-pretitle" id="dos-pretitle">Application</div>
<h2 class="page-title" id="dos-heading">DoS activity</h2>
</div>
</div>
</div>
<div class="alert alert-info" id="dos-intro" role="alert">
<div class="text-secondary" id="dos-intro-text">The platform-wide abuse floor. Offenders are IPs the
rate limiter is throttling; blocked IPs are turned away before the login. Manual blocks survive a
restart; auto blocks expire on their own.</div>
</div>
<!-- Manual block form -->
<div class="card mb-3">
<div class="card-header"><h3 class="card-title" id="dos-l-block-card">Block an address</h3></div>
<div class="card-body">
<form method="post" action="/__app/dos/block">
<input id="dos-block-csrf" type="hidden" name="_csrf" value="">
<div class="row">
<div class="col-md-4 mb-2">
<label class="form-label" id="dos-l-ip" for="dos-ip">IP or CIDR</label>
<input class="form-control" id="dos-ip" name="ip" type="text" placeholder="203.0.113.7" required>
</div>
<div class="col-md-4 mb-2">
<label class="form-label" id="dos-l-reason" for="dos-reason">Reason</label>
<input class="form-control" id="dos-reason" name="reason" type="text">
</div>
<div class="col-md-4 mb-2">
<label class="form-label" id="dos-l-seconds" for="dos-seconds">Duration (seconds)</label>
<input class="form-control" id="dos-seconds" name="seconds" type="number" min="0" value="900">
<small class="form-hint" id="dos-h-seconds">0 blocks indefinitely.</small>
</div>
</div>
<button type="submit" class="btn btn-danger" id="dos-block-submit">Block</button>
</form>
</div>
</div>
<!-- Current blocklist -->
<div class="card mb-3">
<div class="card-header"><h3 class="card-title" id="dos-l-blocks-card">Blocked addresses</h3></div>
<div class="card-body">
<p class="text-secondary" id="dos-blocks-empty">No addresses are currently blocked.</p>
<div class="table-responsive">
<table class="table" data-listing-table="runway.app.dos.blocks">
<thead>
<tr>
<th scope="col" id="dos-th-b-ip">IP / CIDR</th>
<th scope="col" id="dos-th-b-reason">Reason</th>
<th scope="col" id="dos-th-b-source">Source</th>
<th scope="col" id="dos-th-b-until">Expires</th>
<th scope="col" id="dos-th-b-actions" data-nosort>Actions</th>
</tr>
</thead>
<tbody>
<tr id="block-row">
<td class="br-ip">ip</td>
<td class="br-reason">reason</td>
<td class="br-source">source</td>
<td class="br-until">until</td>
<td>
<form class="br-unblock-form" method="post" action="/__app/dos/unblock">
<input class="br-unblock-csrf" type="hidden" name="_csrf" value="">
<input class="br-unblock-ip" type="hidden" name="ip" value="">
<button type="submit" class="btn btn-sm btn-outline-secondary br-unblock">Unblock</button>
</form>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- Blocks that have ended -->
<div class="card mb-3">
<div class="card-header"><h3 class="card-title" id="dos-l-ended-card">Recently ended blocks</h3></div>
<div class="card-body">
<p class="text-secondary" id="dos-ended-hint">Blocks that have expired or been lifted since this
server started. Kept in memory only (newest 100), so this list empties on restart — the
<code>runway.protect</code> log is the durable record.</p>
<p class="text-secondary" id="dos-ended-empty">No blocks have ended yet.</p>
<div class="table-responsive">
<table class="table" data-listing-table="runway.app.dos.ended">
<thead>
<tr>
<th scope="col" id="dos-th-e-ip">IP / CIDR</th>
<th scope="col" id="dos-th-e-reason">Reason</th>
<th scope="col" id="dos-th-e-source">Source</th>
<th scope="col" id="dos-th-e-ended">Ended</th>
</tr>
</thead>
<tbody>
<tr id="ended-row">
<td class="er-ip">ip</td>
<td class="er-reason">reason</td>
<td class="er-source">source</td>
<td class="er-ended">ended</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- Rate-limit offenders -->
<div class="card mb-3">
<div class="card-header"><h3 class="card-title" id="dos-l-offenders-card">Rate-limit offenders</h3></div>
<div class="card-body">
<p class="text-secondary" id="dos-offenders-empty">No offenders yet — the rate limiter is not throttling
anyone.</p>
<div class="table-responsive">
<table class="table" data-listing-table="runway.app.dos.offenders">
<thead>
<tr>
<th scope="col" id="dos-th-o-ip">IP</th>
<th scope="col" id="dos-th-o-requests">Requests</th>
<th scope="col" id="dos-th-o-throttled">Throttled (429)</th>
<th scope="col" id="dos-th-o-blocked">Blocked</th>
</tr>
</thead>
<tbody>
<tr id="offender-row">
<td class="or-ip">ip</td>
<td class="or-requests" data-sort="0">requests</td>
<td class="or-throttled" data-sort="0">throttled</td>
<td class="or-blocked">blocked</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
App-realm DoS activity screen logic. The blocklist rows repeat over ${blocks} and the offender rows over
${offenders}; each empty-state <p> is shown only when its list is empty (an empty list renders zero rows, so
no dead row sits in the tbody). Nested cells inside a repeated <tr> are reached with `//` (a `/`
child selector matches nothing once a cell wraps a control). id selectors are global; class selectors inside
the loop are parent-scoped with `//` so the loop variable stays in scope.
-->
<thlogic>
<attr sel="#dos-pretitle" th:text="#{op.realm.application}"/>
<attr sel="#dos-heading" th:text="#{dos.screen.heading}"/>
<attr sel="#dos-intro-text" th:text="#{dos.screen.intro}"/>
<!-- Manual block form -->
<attr sel="#dos-l-block-card" th:text="#{dos.block.card}"/>
<attr sel="#dos-block-csrf"
th:attr="name=${_csrf != null ? _csrf.parameterName : '_csrf'},value=${_csrf != null ? _csrf.token : ''}"/>
<attr sel="#dos-l-ip" th:text="#{dos.block.ip}"/>
<attr sel="#dos-l-reason" th:text="#{dos.block.reason}"/>
<attr sel="#dos-l-seconds" th:text="#{dos.block.seconds}"/>
<attr sel="#dos-h-seconds" th:text="#{dos.block.seconds.hint}"/>
<attr sel="#dos-block-submit" th:text="#{dos.block.submit}"/>
<!-- Blocklist table -->
<attr sel="#dos-l-blocks-card" th:text="#{dos.blocks.card}"/>
<attr sel="#dos-blocks-empty" th:if="${blocks.isEmpty()}" th:text="#{dos.blocks.empty}"/>
<attr sel="#dos-th-b-ip" th:text="#{dos.col.ip}"/>
<attr sel="#dos-th-b-reason" th:text="#{dos.col.reason}"/>
<attr sel="#dos-th-b-source" th:text="#{dos.col.source}"/>
<attr sel="#dos-th-b-until" th:text="#{dos.col.until}"/>
<attr sel="#dos-th-b-actions" th:text="#{dos.col.actions}"/>
<attr sel="#block-row" th:each="b : ${blocks}" th:id="${null}"/>
<attr sel="#block-row//.br-ip" th:text="${b.ip()}"/>
<attr sel="#block-row//.br-reason" th:text="${b.reason()}"/>
<attr sel="#block-row//.br-source" th:text="${b.source()}"/>
<attr sel="#block-row//.br-until" th:text="${b.until()}"/>
<attr sel="#block-row//.br-unblock-csrf"
th:attr="name=${_csrf != null ? _csrf.parameterName : '_csrf'},value=${_csrf != null ? _csrf.token : ''}"/>
<attr sel="#block-row//.br-unblock-ip" th:attr="value=${b.ip()}"/>
<attr sel="#block-row//.br-unblock" th:text="#{dos.unblock}"/>
<!-- Offenders table -->
<attr sel="#dos-l-ended-card" th:text="#{dos.ended.card}"/>
<attr sel="#dos-ended-hint" th:text="#{dos.ended.hint}"/>
<attr sel="#dos-ended-empty" th:if="${ended.isEmpty()}" th:text="#{dos.ended.empty}"/>
<attr sel="#dos-th-e-ip" th:text="#{dos.th.ended.ip}"/>
<attr sel="#dos-th-e-reason" th:text="#{dos.th.ended.reason}"/>
<attr sel="#dos-th-e-source" th:text="#{dos.th.ended.source}"/>
<attr sel="#dos-th-e-ended" th:text="#{dos.th.ended.ended}"/>
<attr sel="#ended-row" th:each="e : ${ended}" th:id="${null}"/>
<attr sel="#ended-row//.er-ip" th:text="${e.ip()}"/>
<attr sel="#ended-row//.er-reason" th:text="${e.reason()}"/>
<attr sel="#ended-row//.er-source" th:text="${e.source()}"/>
<attr sel="#ended-row//.er-ended" th:text="${e.endedAt()}"/>
<attr sel="#dos-l-offenders-card" th:text="#{dos.offenders.card}"/>
<attr sel="#dos-offenders-empty" th:if="${offenders.isEmpty()}" th:text="#{dos.offenders.empty}"/>
<attr sel="#dos-th-o-ip" th:text="#{dos.col.ip}"/>
<attr sel="#dos-th-o-requests" th:text="#{dos.col.requests}"/>
<attr sel="#dos-th-o-throttled" th:text="#{dos.col.throttled}"/>
<attr sel="#dos-th-o-blocked" th:text="#{dos.col.blocked}"/>
<attr sel="#offender-row" th:each="o : ${offenders}" th:id="${null}"/>
<attr sel="#offender-row//.or-ip" th:text="${o.ip()}"/>
<attr sel="#offender-row//.or-requests" th:text="${o.requests()}" th:attr="data-sort=${o.requests()}"/>
<attr sel="#offender-row//.or-throttled" th:text="${o.throttled()}" th:attr="data-sort=${o.throttled()}"/>
<attr sel="#offender-row//.or-blocked"
th:text="${o.blocked()} ? #{dos.yes} : #{dos.no}"/>
</thlogic>
@@ -0,0 +1,77 @@
<!DOCTYPE html>
<html lang="en">
<head><meta charset="utf-8"><title>Protection</title></head>
<body>
<div id="content">
<div class="page-header d-print-none mb-3">
<div class="row align-items-center">
<div class="col">
<div class="page-pretitle" id="pr-pretitle">Site</div>
<h2 class="page-title" id="pr-heading">Login protection</h2>
</div>
</div>
</div>
<div class="alert alert-info" id="pr-intro" role="alert">
<div class="text-secondary" id="pr-intro-text">These settings govern this site's login. Changes apply
immediately, and affect only this site.</div>
</div>
<div class="alert alert-warning" id="pr-nocipher" role="alert">
<span id="pr-nocipher-text">No encryption key is configured, so a captcha secret cannot be stored.
Configure runway.security.secret-key to enable it.</span>
</div>
<form method="post" action="/__admin/protection">
<input id="pr-csrf" type="hidden" name="_csrf" value="">
<div class="card mb-3">
<div class="card-header"><h3 class="card-title" id="pr-l-honeypot-card">Deterrents</h3></div>
<div class="card-body">
<label class="form-check form-switch">
<input id="pr-honeypot" class="form-check-input" type="checkbox" name="honeypotEnabled" value="true">
<span class="form-check-label" id="pr-honeypot-lbl">Enable the hidden honeypot field</span>
</label>
<small class="form-hint" id="pr-honeypot-hint">A trap field a human never fills; a bot that fills
it is rejected.</small>
</div>
</div>
<div class="card mb-3">
<div class="card-header"><h3 class="card-title" id="pr-l-captcha-card">External CAPTCHA</h3></div>
<div class="card-body">
<label class="form-check form-switch mb-3">
<input id="pr-captcha" class="form-check-input" type="checkbox" name="captchaEnabled" value="true">
<span class="form-check-label" id="pr-captcha-lbl">Require a CAPTCHA challenge</span>
</label>
<div class="mb-3">
<label class="form-label" id="pr-l-provider" for="pr-provider">Provider</label>
<select id="pr-provider" name="provider" class="form-select">
<option id="pr-provider-opt" value="">provider</option>
</select>
</div>
<div class="mb-3">
<label class="form-label" id="pr-l-siteKey" for="pr-siteKey">Site key (public)</label>
<input class="form-control" id="pr-siteKey" name="siteKey" type="text" value="">
<small class="form-hint" id="pr-h-siteKey">The public site key rendered into the challenge widget.</small>
</div>
<div class="mb-3">
<label class="form-label" id="pr-l-secretKey" for="pr-secretKey">Secret key</label>
<input class="form-control" id="pr-secretKey" name="secretKey" type="password" value="" autocomplete="off">
<small class="form-hint" id="pr-h-secretKey">Verified server-side, stored encrypted. Leave blank
to keep the current secret.</small>
</div>
<div class="mb-0">
<label class="form-label" id="pr-l-score" for="pr-score">Score threshold (reCAPTCHA v3)</label>
<input class="form-control" id="pr-score" name="scoreThreshold" type="number" min="0" max="1"
step="0.05" value="">
<small class="form-hint" id="pr-h-score">The minimum score a v3 response must meet (0.0–1.0).</small>
</div>
</div>
</div>
<button type="submit" class="btn btn-primary" id="pr-save">Save</button>
</form>
</div>
</body>
</html>
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Tenant-realm Protection screen logic — honeypot + CAPTCHA over the bound site's per-site ${settings} (a model
variable, so its th:attr bindings are fine — the @bean-in-th:attr restriction does not apply here). The per-IP
lockout is app-scope only, so it is not shown per-site. The captcha SECRET is never written into the input; a
blank submit keeps the stored secret.
-->
<thlogic>
<attr sel="#pr-pretitle" th:text="#{op.realm.tenant}"/>
<attr sel="#pr-heading" th:text="#{protection.screen.heading}"/>
<attr sel="#pr-intro-text" th:text="#{protection.screen.site.intro}"/>
<attr sel="#pr-nocipher" th:if="${!captchaSecretStorable}"/>
<attr sel="#pr-nocipher-text" th:text="#{protection.screen.noCipher}"/>
<attr sel="#pr-csrf"
th:attr="name=${_csrf != null ? _csrf.parameterName : '_csrf'},value=${_csrf != null ? _csrf.token : ''}"/>
<attr sel="#pr-l-honeypot-card" th:text="#{protection.screen.deterrents}"/>
<attr sel="#pr-honeypot" th:checked="${settings.honeypotEnabled()}"/>
<attr sel="#pr-honeypot-lbl" th:text="#{protection.screen.honeypot}"/>
<attr sel="#pr-honeypot-hint" th:text="#{protection.screen.honeypot.hint}"/>
<!-- No per-IP lockout card here: the lockout is an application-scope floor (SlidingWindowLoginGate reads the app
settings), so a per-site value would never take effect. Per-site protection is honeypot + CAPTCHA only. -->
<attr sel="#pr-l-captcha-card" th:text="#{protection.screen.captcha}"/>
<attr sel="#pr-captcha" th:checked="${settings.captcha().enabled()}"/>
<attr sel="#pr-captcha-lbl" th:text="#{protection.screen.captcha.enable}"/>
<attr sel="#pr-l-provider" th:text="#{protection.screen.provider}"/>
<attr sel="#pr-provider-opt" th:each="p : ${providers}" th:value="${p}" th:id="${null}"
th:text="#{'protection.screen.provider.' + ${p}}" th:selected="${p == settings.captcha().provider()}"/>
<attr sel="#pr-l-siteKey" th:text="#{protection.screen.siteKey}"/>
<attr sel="#pr-siteKey" th:attr="value=${settings.captcha().siteKey()}"/>
<attr sel="#pr-h-siteKey" th:text="#{protection.screen.siteKey.hint}"/>
<attr sel="#pr-l-secretKey" th:text="#{protection.screen.secretKey}"/>
<attr sel="#pr-secretKey"
th:attr="placeholder=${captchaSecretConfigured} ? #{protection.screen.secretKey.set} : #{protection.screen.secretKey.unset}"/>
<attr sel="#pr-h-secretKey" th:text="#{protection.screen.secretKey.hint}"/>
<attr sel="#pr-l-score" th:text="#{protection.screen.score}"/>
<attr sel="#pr-score" th:attr="value=${settings.captcha().scoreThreshold()}"/>
<attr sel="#pr-h-score" th:text="#{protection.screen.score.hint}"/>
<attr sel="#pr-save" th:text="#{protection.screen.save}"/>
</thlogic>