<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Administration on PosternProxy Documentation</title><link>https://07e95d50.posternproxydocs.pages.dev/administration/</link><description>Recent content in Administration on PosternProxy Documentation</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://07e95d50.posternproxydocs.pages.dev/administration/index.xml" rel="self" type="application/rss+xml"/><item><title>Security Hardening</title><link>https://07e95d50.posternproxydocs.pages.dev/administration/security-hardening/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://07e95d50.posternproxydocs.pages.dev/administration/security-hardening/</guid><description>&lt;h1 id="security-hardening"&gt;Security Hardening&lt;a class="anchor" href="#security-hardening"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;&lt;code&gt;posternproxy install&lt;/code&gt; configures service sandboxing, fail2ban, sysctl hardening,
and unattended security updates. Firewall configuration is opt-in. This page
documents the defaults and verification commands.&lt;/p&gt;
&lt;h2 id="application-level-hardening"&gt;Application-level hardening&lt;a class="anchor" href="#application-level-hardening"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id="authentication"&gt;Authentication&lt;a class="anchor" href="#authentication"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;JWT access tokens with 15-minute TTL&lt;/li&gt;
&lt;li&gt;Refresh tokens with 7-day TTL stored in HttpOnly / SameSite=Strict cookies;
Secure follows &lt;code&gt;POSTERNPROXY_BEHIND_TLS_PROXY&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;bcrypt password hashing at cost factor 12&lt;/li&gt;
&lt;li&gt;Login rate limit: 5 attempts/min per IP (enforced by the API and by fail2ban)&lt;/li&gt;
&lt;li&gt;Account lockout is not time-based — use fail2ban to block IPs&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="api-security"&gt;API security&lt;a class="anchor" href="#api-security"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Rate limiting:&lt;/strong&gt; 120 requests/min per IP on authenticated management API routes by default (&lt;code&gt;POSTERNPROXY_API_RATE_LIMIT&lt;/code&gt;); 5 login attempts/min per IP (&lt;code&gt;POSTERNPROXY_LOGIN_RATE_LIMIT&lt;/code&gt;); 30 agent WebSocket connection attempts/min per IP&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CSRF protection:&lt;/strong&gt; Double-submit cookie/header checks on management mutations,
including API-token requests; the authentication routes have separate handling&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Secure headers on all responses:&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;X-Content-Type-Options: nosniff&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;X-Frame-Options: DENY&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Strict-Transport-Security: max-age=31536000; includeSubDomains&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Content Security Policy restricts sources to the app, with allowances for inline styles and data images&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Input validation:&lt;/strong&gt; Resources have validation for their supported inputs, but
validation coverage is not fully qualified across every API. Stream listener
collisions with known managed listeners are rejected before saving.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="encrypted-storage"&gt;Encrypted storage&lt;a class="anchor" href="#encrypted-storage"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Stored SSH credentials and configuration-history snapshot contents use
AES-256-GCM with a key derived from the stable JWT secret. Custom certificate
private keys are encrypted in immutable source files. Caddy reads separate
runtime copies through the restricted certificate group. Retain the original
controller secret with offline backups; an empty or unreadable persisted secret
stops startup instead of silently replacing the encryption key. DNS-provider
integration is not implemented.&lt;/p&gt;</description></item><item><title>Beta upgrades and recovery</title><link>https://07e95d50.posternproxydocs.pages.dev/administration/upgrading/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://07e95d50.posternproxydocs.pages.dev/administration/upgrading/</guid><description>&lt;h1 id="beta-upgrades-and-recovery"&gt;Beta upgrades and recovery&lt;a class="anchor" href="#beta-upgrades-and-recovery"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;PosternProxy remains in beta. A version label alone does not identify a database
schema: earlier beta development changed the consolidated initial migration.
Do not replace an existing binary and assume its database will be upgraded safely.&lt;/p&gt;
&lt;h2 id="schema-baseline"&gt;Schema baseline&lt;a class="anchor" href="#schema-baseline"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The development baseline is the schema frozen on October 24, 2026 in
&lt;code&gt;internal/database/testdata/beta-exit-2026-10-24.sql&lt;/code&gt;. The initial migration is
frozen to that schema. Subsequent schema changes must use new, ordered migrations
and retain the baseline upgrade regression test. Repeated startup must preserve
existing data and applied migrations.&lt;/p&gt;</description></item><item><title>Troubleshooting</title><link>https://07e95d50.posternproxydocs.pages.dev/administration/troubleshooting/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://07e95d50.posternproxydocs.pages.dev/administration/troubleshooting/</guid><description>&lt;h1 id="troubleshooting"&gt;Troubleshooting&lt;a class="anchor" href="#troubleshooting"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="service-not-starting"&gt;Service not starting&lt;a class="anchor" href="#service-not-starting"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id="posternproxy-fails-to-start"&gt;PosternProxy fails to start&lt;a class="anchor" href="#posternproxy-fails-to-start"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo tail -n &lt;span style="color:#a5d6ff"&gt;50&lt;/span&gt; /var/log/posternproxy/posternproxy.log&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Common causes:&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Symptom&lt;/th&gt;
					&lt;th&gt;Cause&lt;/th&gt;
					&lt;th&gt;Fix&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;database is locked&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Another PosternProxy instance is running&lt;/td&gt;
					&lt;td&gt;&lt;code&gt;systemctl stop posternproxy; systemctl start posternproxy&lt;/code&gt;&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;migration failed&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Bad database state&lt;/td&gt;
					&lt;td&gt;Restore from backup&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;address already in use :81&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Another process owns port 81&lt;/td&gt;
					&lt;td&gt;&lt;code&gt;ss -tlnp | grep 81&lt;/code&gt; to find it&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;config.env not found&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Missing config file&lt;/td&gt;
					&lt;td&gt;For existing data, restore the original config and encryption secret. For a fresh install, run &lt;code&gt;posternproxy install&lt;/code&gt;.&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id="caddy-fails-to-start"&gt;Caddy fails to start&lt;a class="anchor" href="#caddy-fails-to-start"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;journalctl -u caddy -n &lt;span style="color:#a5d6ff"&gt;50&lt;/span&gt; --no-pager
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;caddy validate --config /etc/caddy/Caddyfile &lt;span style="color:#8b949e;font-style:italic"&gt;# if using Caddyfile fallback&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Common causes:&lt;/p&gt;</description></item><item><title>Beta limitations</title><link>https://07e95d50.posternproxydocs.pages.dev/administration/beta-limitations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://07e95d50.posternproxydocs.pages.dev/administration/beta-limitations/</guid><description>&lt;h1 id="beta-limitations"&gt;Beta limitations&lt;a class="anchor" href="#beta-limitations"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;PosternProxy remains beta. A binary build, an online agent and working traffic
are separate outcomes. Use
&lt;a href="https://07e95d50.posternproxydocs.pages.dev/administration/release-validation/"&gt;release validation&lt;/a&gt; before
deployment.&lt;/p&gt;
&lt;p&gt;Windows amd64 service installation and native Linux amd64/arm64 packaging are now
implemented, with native qualification jobs and Docker/Compose smoke tests in
the release workflows. Controller/agent Windows service lifecycle and custom TLS
passed on an authorized workstation using the development bundle. Ubuntu amd64
native installation/provisioning and source-built Docker/Compose checks pass.
ARM64 installer and container functional checks also pass under QEMU; container
runtime checks used verified cross-built binaries. Candidate runner checks and
native ARM hardware qualification are still required;
local unit tests and cross-compilation are not platform qualification. Tagged
workflows create drafts after qualification; Docker publishing starts only after
the owner publishes the GitHub release. No release was published by this work.&lt;/p&gt;</description></item><item><title>Release validation</title><link>https://07e95d50.posternproxydocs.pages.dev/administration/release-validation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://07e95d50.posternproxydocs.pages.dev/administration/release-validation/</guid><description>&lt;h1 id="release-validation"&gt;Release validation&lt;a class="anchor" href="#release-validation"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The beta-exit work is recorded as architecture decision records under &lt;code&gt;docs/adr/&lt;/code&gt;.
Passing the development checks below establishes a foundation; it does not remove
beta status or close the authentication, provisioning, synchronization,
certificate, and recovery blockers.&lt;/p&gt;
&lt;h2 id="caddy-build-contract"&gt;Caddy build contract&lt;a class="anchor" href="#caddy-build-contract"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;internal/caddybuild/build.sh&lt;/code&gt; is the source of the Caddy, L4, rate-limit,
&lt;code&gt;http_ntlm&lt;/code&gt;, Coraza, CRS, and xcaddy versions. Bash and PowerShell builds, Dockerfiles,
standalone installers, and native SSH provisioning consume it. Installers check
the core version and the pinned plugin versions, including
&lt;code&gt;github.com/PosternProxy/ntlm-transport&lt;/code&gt;, &lt;code&gt;github.com/corazawaf/coraza-caddy/v2&lt;/code&gt;,
&lt;code&gt;github.com/corazawaf/coraza/v3&lt;/code&gt;, and &lt;code&gt;github.com/corazawaf/coraza-coreruleset/v4&lt;/code&gt;.
Native installers also verify the
pinned Go toolchain and security dependency replacements from the contract. The
controller installer stages and verifies its release&amp;rsquo;s Caddy, then replaces the
installed binary. The native agent installer stages and verifies Caddy before
replacing it.&lt;/p&gt;</description></item></channel></rss>