Add OBS podcast ingestion and account withdrawal privacy controls

Support scoped RTMPS publishing through MediaMTX, authenticated replay, resource accounting and PostIt activation/revocation. Close withdrawn accounts, erase managed files and purge eligible payment residues after one year. Include migrations, documentation and regression tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Paul Schneider 2026-11-08 07:43:15 +00:00
commit b157dce4e4
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
54 changed files with 12996 additions and 50 deletions

View file

@ -62,6 +62,15 @@ public sealed class PodcastScheduleTests(ApiWebServerFixture fixture) : IClassFi
Assert.NotNull(plan.FlowId);
Assert.Equal(request.ScheduledStartAt, plan.ScheduledStartAt);
Assert.Equal(90, plan.PlannedDurationMinutes);
using var obsStatus = await owner.GetAsync(path + "/obs", Ct);
Assert.Equal(HttpStatusCode.OK, obsStatus.StatusCode);
Assert.True(obsStatus.Headers.CacheControl?.NoStore);
var status = await obsStatus.Content.ReadFromJsonAsync<PodcastObsStatus>(Ct);
Assert.False(status!.Enabled);
using var obsDenied = await other.GetAsync(path + "/obs", Ct);
Assert.Equal(HttpStatusCode.Forbidden, obsDenied.StatusCode);
using var obsAnonymous = await anonymous.GetAsync(path + "/obs", Ct);
Assert.Equal(HttpStatusCode.Unauthorized, obsAnonymous.StatusCode);
using (var scope = fixture.Services.CreateScope())
{
var flow = await scope.ServiceProvider.GetRequiredService<ApplicationDbContext>().LiveFlow