fix(security): harden public CV edges
CI and Deploy / test (pull_request) Failing after 5m23s
CI and Deploy / deploy (pull_request) Has been skipped

This commit is contained in:
cesnimda
2026-08-15 20:53:16 +02:00
parent 74a1e0d845
commit 8ef8b098c8
13 changed files with 54 additions and 6 deletions
@@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Http;
namespace JobTrackerApi.Services;
public static class RateLimitPartitionKeys
{
public static string PublicPdf(HttpContext context)
{
var client = context.Connection.RemoteIpAddress?.ToString() ?? "unknown";
var slug = context.Request.RouteValues["slug"]?.ToString() ?? "unknown";
return $"public-pdf:{client}:{slug}";
}
}