Skip to content

Security page, security.txt, Proton contact address and a new header - #53

Merged
nicolasmesser merged 2 commits into
mainfrom
claude/project-thread-vpgvb6
Nov 27, 2026
Merged

nicolasmesser merged 2 commits into
mainfrom
claude/project-thread-vpgvb6

Conversation

@nicolasmesser

@nicolasmesser nicolasmesser commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Requested by Nico · project thread

This PR does three things from the security review. It gives people who find a security problem a clear, private way to report it. It moves the site's contact address to a dedicated Proton inbox. And it tidies the header and footer.

Changes

Security reporting

  • public/.well-known/security.txt (RFC 9116): Contact: mailto:swim-events@proton.me, Expires: 2027-11-30, languages en, de and fr, plus Canonical and Policy links. A reminder to renew the expiry date is set for 1 November 2027.
  • New /security page (uses LegalLayout). It covers what's in scope, how to report and what to include, a reply within 5 working days, no bug bounty, safe-harbour rules for good-faith testing, and what's out of scope.

Contact address

  • info@proswimworkouts.com is replaced with swim-events@proton.me on every page (about, privacy, terms, sign-in, submit, account), in CONTACT_EMAIL for form errors, and as REPLY_TO in notify-submission.
  • The privacy policy now lists Proton (Proton AG, Switzerland) as the email inbox. The privacy and terms pages are dated 27 Nov 2026.

Header and footer

  • The footer keeps only Privacy policy, Terms of service and Security. About moves to the header.
  • Signed-out visitors see About, a Submit an event button, and the dark mode toggle.
  • Signed-in visitors see About, Account, and the dark mode toggle. Submitting stays one click away on the account page.
  • AuthState.astro sets <html data-signed-in> before the first paint when the browser holds a stored Supabase session, so the header doesn't flicker. It doesn't load supabase-js on every page. auth.ts tells it about sign-in and sign-out straight away, and Astro page changes and other tabs are covered. Whether the session is still valid is checked on the account and submit pages, as before.
  • NavigationItem gets two optional fields, button and show: 'signed-in' | 'signed-out'.

After merging (by hand)

  • Redeploy the notify-submission Edge Function, so organiser emails reply to the new address.
  • Supabase → Authentication → Emails → Templates: replace info@proswimworkouts.com in the Magic Link and Confirm signup templates.
  • Optional: set the NOTIFY_EMAIL secret to swim-events@proton.me, so the review emails arrive in the same inbox.

Checks

  • npm run lint and astro check both pass with no errors.
  • The build generates dist/.well-known/security.txt and dist/security/index.html.
  • In the local preview, the header shows About, Submit an event and the toggle when signed out, and About, Account and the toggle with a stored session. Checked on desktop and on mobile (390 px), in light and dark mode. The footer shows the three legal links.
  • Screenshots are in the project files under security-page/.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BtKM4TZ917FEo7VwVUDwjU

…roton.me

- public/.well-known/security.txt (RFC 9116): contact, expiry 30 Nov 2027,
  languages en/de/fr, canonical and policy links
- /security page: scope, how to report, response time, no bounty, safe
  harbour rules, out of scope; linked in the footer
- Replace info@proswimworkouts.com with swim-events@proton.me on every page,
  in the form errors and as reply-to of the notification emails
- Privacy policy lists Proton as the email inbox; privacy and terms dated 27 Nov

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BtKM4TZ917FEo7VwVUDwjU
@nicolasmesser nicolasmesser self-assigned this Nov 27, 2026
@netlify

netlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for swim-events ready!

Name Link
🔨 Latest commit 2e00eaa
🔍 Latest deploy log https://app.netlify.com/projects/swim-events/deploys/6b09848b864a5b75ddfa2d38
😎 Deploy Preview https://deploy-preview-53--swim-events.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

…legal links

- About moves from the footer to the header; the footer keeps Privacy, Terms
  and Security
- "Submit an event" is a button for signed-out visitors; signed-in visitors
  see Account instead (submit stays one click away on the account page)
- AuthState.astro marks <html data-signed-in> before the first paint when the
  browser holds a Supabase session, without loading supabase-js on every page;
  auth.ts tells it about sign-in and sign-out right away

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BtKM4TZ917FEo7VwVUDwjU
@nicolasmesser nicolasmesser changed the title Add security.txt and a security page, switch contact to swim-events@proton.me Security page, security.txt, Proton contact address and a new header Nov 27, 2026
@nicolasmesser
nicolasmesser merged commit 63cbfab into main Nov 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants