Security Policy Permalink
In this article
This is the personal website and public interface of Farhan Kurnia Pratama: SvelteKit and Hono applications deployed as Cloudflare Workers, backed by Cloudflare D1 and R2, with Supabase Auth for administrator sign-in — the public site at https://fkp.my.id, the admin portal at https://admin.fkp.my.id, and a public read-only API at https://api.fkp.my.id/v1.
Scope
Only the code and infrastructure of this project and its live deployments at https://fkp.my.id, https://admin.fkp.my.id and https://api.fkp.my.id are in scope. There are no separately maintained release branches or versions to track: the main branch is what is deployed, and that is the only version supported for security fixes.
Areas of particular interest:
- Authentication and administrative access — the admin portal at
admin.fkp.my.id, its/api/internal/admin/*endpoints, and Supabase Auth (password, TOTP and passkeys). Admin pages are guarded server-side (session,adminrole and MFA), and every privileged endpoint independently verifies a bearer token, the role and MFA, so a finding that demonstrates a privileged action succeeding without a valid, MFA-satisfied admin session is in scope. - Service data access — the database has no row-level security, so every server path that reads or writes through the privileged data stores must authorize its caller first. A path that reaches them without that check is in scope.
- The public API (
api.fkp.my.id/v1/**) and the agent discovery API (fkp.my.id/api/ard/**) — input validation, filter escaping, rate limiting, and CORS. The/v1API is read-only by design; a mutating handler reachable under it is itself a finding. - The internal interface (
/api/internal/**on both hosts) — comment submission and reporting, view counting, helpfulness feedback, newsletter subscription and unsubscription, the contact and feedback forms, and the administrator endpoints, including content uploads. This includes same-origin enforcement, the anti-abuse challenge (Turnstile, verified server-side), and the automated moderation pipeline. - Sign in with the site (OpenID Connect provider) —
/oauth/**on the site and admin hosts,/.well-known/openid-configuration,/.well-known/jwks.json, and/.well-known/webfinger: client authentication, redirect URI matching, authorization codes, PKCE, refresh token rotation, and token revocation. - The newsletter pipeline — the
idstead-newsletterqueue and theidstead-jobsworker that sends email through Resend. - Edge behaviour — the response security headers and content security policy, the apex redirect, and the reverse proxy that serves static assets from the content delivery origin.
- Public metadata endpoints —
/.well-known/**,sitemap.xml,atom.xml,robots.txt, andllms.txt.
Known and accepted design boundaries
Reporting these as vulnerabilities is unlikely to lead to a fix, so they are recorded here rather than left to be rediscovered:
- Editorial content is a trusted-author channel. Blog posts and the legal documents are stored as Markdown and rendered to HTML through an allow-list sanitiser. The primary control is still the restriction on who can write that content; a path that lets an unprivileged party write to it is in scope, and is a high-severity finding, as is any sanitiser bypass.
- Same-origin enforcement accepts a request with no
Originheader when it is aGET/HEAD, or whenSec-Fetch-Siteissame-origin. This is known.
Out of scope: findings that require physical access or social engineering; denial-of-service and volumetric testing; and the infrastructure of third-party services this project does not control, namely Cloudflare, Supabase, Sentry, Resend, Google Tag Manager and Analytics, and GitHub. Please report issues in those services to their respective vendors.
Reporting a Vulnerability
Report by email: send the details to contact@fkp.my.id. Please don't disclose a suspected vulnerability publicly until it has been fixed.
Please include:
- A description of the vulnerability and its potential impact
- Steps to reproduce, with a proof of concept if you have one
- Any relevant request and response details, with your own personal data redacted
Please test only against your own data, and please do not access, modify, or retain data belonging to anyone else.
What to Expect
This project is maintained by one person, not a security team, so response times are best-effort:
- Acknowledgment — within a few days of the report
- Triage and validation — as soon as reasonably possible after acknowledgment
- Fix and disclosure — depending on severity; authentication bypass, authorization bypass, and data exposure are prioritised
Please allow a reasonable period to investigate and patch before any public disclosure.
Measures Already in Place
Reports that account for the following are more useful than those that do not:
- A pre-commit hook runs a secret scanner over staged files and blocks the commit on a verified finding. It exits without error if the scanner is not installed locally.
- GitHub secret scanning and push protection are enabled on the repository.
- HTML responses carry a content security policy with
frame-ancestors 'none'andobject-src 'none'; static assets additionally carryX-Content-Type-Options: nosniff,X-Frame-Options: DENY, andReferrer-Policy: strict-origin-when-cross-origin. - The public API and the site's
/api/*endpoints are rate limited to 60 requests per minute per IP address, and administrator sign-in is locked out after 5 failed attempts within 15 minutes. - Every blog comment is screened by an automated moderation model before it can be shown; if the model is unavailable the comment is rejected.
- Administrator access requires MFA (TOTP or a passkey), enforced on the server by every administrator page and endpoint.
- Database error text is scrubbed from responses before it leaves the server, so schema details are not disclosed through error messages.
Recognition
There is no formal bug bounty programme, but valid reports are credited, with your permission, in the commit message or release notes accompanying the fix.
Help improve this page
Was this page helpful to you?