Repository navigation
Security page, security.txt, Proton contact address and a new header - #53
Merged
Merged
Conversation
…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
✅ Deploy Preview for swim-events ready!
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, plusCanonicalandPolicylinks. A reminder to renew the expiry date is set for 1 November 2027./securitypage (usesLegalLayout). 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.comis replaced withswim-events@proton.meon every page (about, privacy, terms, sign-in, submit, account), inCONTACT_EMAILfor form errors, and asREPLY_TOinnotify-submission.Header and footer
AuthState.astrosets<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.tstells 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.NavigationItemgets two optional fields,buttonandshow: 'signed-in' | 'signed-out'.After merging (by hand)
notify-submissionEdge Function, so organiser emails reply to the new address.info@proswimworkouts.comin the Magic Link and Confirm signup templates.NOTIFY_EMAILsecret toswim-events@proton.me, so the review emails arrive in the same inbox.Checks
npm run lintandastro checkboth pass with no errors.dist/.well-known/security.txtanddist/security/index.html.security-page/.🤖 Generated with Claude Code
https://claude.ai/code/session_01BtKM4TZ917FEo7VwVUDwjU