Commit Graph

  • de17426f41 Observe blob fetch errors during GET requests. miyuko 2025-11-17 11:08:10 +00:00
  • 3334af922f Allow external redirects for 3xx statuses David Leadbeater 2025-11-17 19:24:54 +11:00
  • 5a09d30d3d Renovate: disable automerge so it'd stop breaking the flake. Catherine 2025-11-17 04:34:26 +00:00
  • d88d97721a Observe whether manifest cache is bypassed. Catherine 2025-11-17 04:34:17 +00:00
  • 91dc7e0c54 Add original (decompressed) size to site manifest. Catherine 2025-11-16 19:27:02 +00:00
  • 770ff5c416 Remove unused go.mod entries. Catherine 2025-11-16 19:22:20 +00:00
  • 779f705d5c Allow matching multiple subdomains in wildcards oppiliappan 2025-11-16 05:56:12 +00:00
  • 5da56a1b94 Link to git-pages-cli in README. Catherine 2025-11-16 02:06:19 +00:00
  • 2193fb86de Try to fix Sentry errors getting attached to wrong transactions. miyuko 2025-11-16 00:30:09 +00:00
  • de40c8263a Set Update-Result for DELETE requests. Catherine 2025-11-16 00:18:27 +00:00
  • 3e59fd2734 Rename X-Pages-Update header to Update-Result. Catherine 2025-11-15 23:46:19 +00:00
  • 9a431b8bbb Add /.git-pages/health endpoint. Catherine 2025-11-15 21:17:30 +00:00
  • adfbb99172 Add Caddy to the Nix devshell. bin 2025-11-15 12:20:55 -05:00
  • d604455e1f Ignore trailing . in hostnames. Catherine 2025-11-15 03:12:02 +00:00
  • 3431217a09 Don't respond with a completely blank 404 page. Catherine 2025-11-15 01:42:22 +00:00
  • b70a9ad4dd Allow only ssh, http, and https schemes for clone URLs. Catherine 2025-11-14 23:12:53 +00:00
  • 19892ecfd1 Correctly read symlinks from zip files David Leadbeater 2025-11-14 12:50:01 +11:00
  • ff8cf9928e Make compression always enabled. Catherine 2025-11-13 23:22:23 +00:00
  • 9d0a3ac6ad Use Branch: instead of X-Pages-Branch: to set custom branch name. Catherine 2025-11-12 17:05:11 +00:00
  • ed77339144 Remove deprecated COOP/COEP assignment based on content type. Catherine 2025-11-11 17:55:45 +00:00
  • cf5b98e3e5 Don't issue extraneous HEAD requests for S3 GetObject operations. miyuko 2025-11-11 17:16:46 +00:00
  • 02b5b7d2bb Ignore only the malformed _redirects/_headers rules. Catherine 2025-11-11 15:55:47 +00:00
  • c90b453d44 Default to allowed-custom-headers = ["X-Clacks-Overhead"]. Catherine 2025-11-11 15:38:08 +00:00
  • 26b29ec4be Add Netlify _headers support. Catherine 2025-11-11 15:13:46 +00:00
  • 2a6308eb05 Update flake. Catherine 2025-11-11 06:12:40 +00:00
  • f9e142dd51 Observe all storage errors reported by GetManifest. Catherine 2025-11-11 05:59:08 +00:00
  • c4b3671a53 Add [[wildcard]].index-repo-branch option (pages by default). Catherine 2025-11-05 23:00:29 +00:00
  • 9b19eeae82 Add missing [limits] keys to default configuration. Catherine 2025-11-05 22:40:48 +00:00
  • 47a658ac03 Avoid leaking http.Transport resources. Catherine 2025-11-05 09:48:35 +00:00
  • 3c07ebccbf Add [[wildcard]].fallback-insecure option to disable TLS verification. Catherine 2025-11-04 19:03:35 +00:00
  • 28c1b42167 fix(deps): update all dependencies woodpecker-bot 2025-10-30 00:10:05 +00:00
  • ba820e63e3 Work around slog issues handling %% in a format string. Catherine 2025-10-29 01:04:01 +00:00
  • 2db3de01c7 Fix a nil dereference on non-custom 404 pages. Catherine 2025-10-27 16:14:35 +00:00
  • 91cafac86a Apply Content-Type from the manifest to non-200 status pages. Catherine 2025-10-27 15:20:36 +00:00
  • d0e0f98616 Fix flake, and (actually) disable Renovate auto-merge. Catherine 2025-10-27 15:13:50 +00:00
  • b295318118 fix(deps): update all dependencies woodpecker-bot 2025-10-27 00:11:41 +00:00
  • c93bc3a250 CI: run on all branches, but package only on main branch. Catherine 2025-10-26 05:02:00 +00:00
  • 30668be4a0 If an https fallback URL is configured, try TLS for Caddy domain check. Catherine 2025-10-26 04:53:55 +00:00
  • 26b926293b Serve X-Content-Type-Options: nosniff. Catherine 2025-10-24 09:28:47 +00:00
  • 68343a3dff Turns out a Web Worker is a type of frame (for COEP purposes). Catherine 2025-10-24 09:26:54 +00:00
  • fc1582972c Fix flake. Catherine 2025-10-23 15:12:29 +00:00
  • b6d9f3de61 Renovate: disable automerge so it'd stop breaking the flake. Catherine 2025-10-23 15:12:22 +00:00
  • d4b779eeb4 Copy root .go files to the builder image in the Dockerfile. miyuko 2025-10-23 15:08:09 +01:00
  • f1400aaf62 fix(deps): pin dependencies woodpecker-bot 2025-10-23 00:11:27 +00:00
  • 8f8521d697 Don't compress video or audio files. miyuko 2025-10-22 17:24:29 +01:00
  • ffedc45a14 Don't send COEP/COOP headers for non-HTML resources. miyuko 2025-10-22 17:18:14 +01:00
  • d6a7a72e09 Serve compressed content directly if client indicates support. miyuko 2025-10-22 16:17:13 +01:00
  • aa965c5a08 Use s3:GetObject instead of s3:ListObjects for CheckDomain. miyuko 2025-10-15 19:12:19 +01:00
  • 34db13e603 Simplify observability code. NFC Catherine 2025-10-22 10:44:25 +00:00
  • d144ea197e Update README. Simon Kolkmann 2025-10-22 11:50:33 +02:00
  • d1be93919f Make installable with go install. Catherine 2025-10-22 05:16:49 +00:00
  • 9f435d6e28 Disable actions/buildah-simple from renovate Gusted 2025-10-22 01:37:45 +02:00
  • c39e57a857 Fetch manifests in parallel when handling GET requests. miyuko 2025-10-17 17:12:24 +01:00
  • 3863f0f134 Revert "Add a GetManifests function." miyuko 2025-10-22 00:14:37 +01:00
  • 9849bcd498 Renovate: disable abandonmentThreshold. Catherine 2025-10-21 23:13:34 +00:00
  • 0d7a9aa9eb chore(deps): add renovate.json woodpecker-botandCatherine 2025-10-21 22:52:59 +00:00
  • 5e09a2b2bb Add a metric for site space saving due to compression. Catherine 2025-10-21 03:54:20 +00:00
  • 25f7ea08c9 Sniff Content-Type during site update. Catherine 2025-10-21 03:40:29 +00:00
  • 0a111234f2 Add a GetManifests function. Catherine 2025-10-21 01:40:20 +00:00
  • 83c1e564c4 Add stored_size (size after deduplication) to manifest. Catherine 2025-10-21 00:49:27 +00:00
  • 23b516cf15 Observe timings even for 304 Not Modified responses to manifest loads. Catherine 2025-10-21 00:29:42 +00:00
  • 99b87226a1 Move update error observation to a single place. NFC Catherine 2025-10-17 10:56:29 +00:00
  • fcc6245ce8 Respond to webhook deliveries in under 3 seconds. miyuko 2025-10-17 22:08:25 +01:00
  • 2ac2aee14a Use ETags when refreshing cached manifests. miyuko 2025-10-17 21:13:45 +01:00
  • d54976e756 Report update errors or timeouts. Catherine 2025-10-17 10:33:40 +00:00
  • ff6fff2133 Add git_pages_http_request_count metric. Catherine 2025-10-17 02:09:28 +00:00
  • e709634906 Add classic buckets to git_pages_s3_get_object_duration_seconds. miyuko 2025-10-17 03:07:02 +01:00
  • 93b7ad3af8 Add classic buckets to git_pages_http_request_duration_seconds. miyuko 2025-10-17 02:33:52 +01:00
  • cfeb2d0dbe Observe s3:GetObject latency. miyuko 2025-10-16 03:14:02 +01:00
  • 6fe029238a Update flake.nix. miyuko 2025-10-16 00:50:12 +01:00
  • 32109d0db8 Monitor how long it takes us to respond to HTTP requests. miyuko 2025-10-16 00:31:18 +01:00
  • eda3e8a791 Add stale-while-revalidate support to the cache. miyuko 2025-10-15 22:47:24 +01:00
  • 8bb6d0ff28 Unconditionally sample HTTP requests for tracing that take too long. miyuko 2025-10-15 14:29:32 +01:00
  • 87262e82f0 Swallow DNS allowlist parsing errors if at least one record is valid. miyuko 2025-10-15 01:51:51 +01:00
  • afae6e42f3 S3: log blob sizes in human readable form. Catherine 2025-10-13 02:39:17 +00:00
  • 443e929dea Respond within 10 seconds when receiving GitHub webhooks. miyuko 2025-10-13 00:46:01 +01:00
  • 188c66c434 Use an ad-hoc type to deserialize JSON webhook payload. Catherine 2025-10-09 14:52:58 +00:00
  • 5b8cb4ba11 Clean up Caddyfile, removing Fly.io-isms. Catherine 2025-10-09 14:42:22 +00:00
  • d887ae1602 Allow metadata retrieval with Codeberg Pages v2 authorization method. Catherine 2025-10-09 13:43:00 +00:00
  • e0b659f668 Add [limits].allowed-repository-url-prefixes configuration option. Catherine 2025-10-09 13:18:44 +00:00
  • 2d603db810 Use the upstream certmagic-s3 Caddy plugin. miyuko 2025-10-08 01:23:57 +01:00
  • 15107298b2 Allow a trailing dot in Codeberg Pages v2 DNS TXT authentication method. Catherine 2025-10-07 19:00:46 +00:00
  • a85905bd31 Fix time-based cache expiration practically never working. miyuko 2025-10-05 15:05:12 +01:00
  • 0eede0792d Add hostname and (if present) $PAGES_REGION to Server:. Catherine 2025-10-05 08:11:50 +00:00
  • a14f9e1e6c Use int64, not uint32, for sizes in the manifest. Catherine 2025-10-03 06:01:51 +00:00
  • 1e01a12958 Implement force redirects. Catherine 2025-10-02 16:41:23 +00:00
  • 157ceb8342 Add an HTTP status code workaround for GitHub. Catherine 2025-10-02 12:41:15 +00:00
  • a7c47a798f Allow running without a configuration TOML file. Catherine 2025-10-02 11:32:48 +00:00
  • d5a4ac4098 Fix URL argument validation when using the -update-site CLI option. miyuko 2025-09-30 21:54:08 +01:00
  • f0805c9ff5 Revert "Remove redundant bounds check from ExtractTar. NFCI" Catherine 2025-09-30 05:19:28 +00:00
  • 485cd4b9b1 Remove redundant bounds check from ExtractTar. NFCI Catherine 2025-09-30 05:19:07 +00:00
  • 277b329e2d Merge backend_observer.go into observe.go. NFC Catherine 2025-09-30 04:40:30 +00:00
  • 50e32fedb0 Add logo. Catherine 2025-09-30 04:35:06 +00:00
  • 9f24d665bc Remove Fly.io configuration. Catherine 2025-09-30 04:17:08 +00:00
  • b1ef57d32a Only cache NotFound errors from S3 backend, rather than any errors. Catherine 2025-09-30 03:44:24 +00:00
  • 764b4cd9f5 Observe blob size in GetBlob as well. Catherine 2025-09-30 02:54:53 +00:00
  • 396cabd43b Exclude metrics endpoint from observability. Catherine 2025-09-30 02:26:19 +00:00
  • 5f3ec8464f Fix Sentry sample rate calculation. Catherine 2025-09-30 01:37:26 +00:00
  • f63940b459 Submit server region and machine ID to tracing. Catherine 2025-09-30 01:48:43 +00:00
  • 161696427b Cleanup Nix flake. bin 2025-09-29 21:26:46 -04:00