Skip to content

docs: add project README#134

Merged
sondresjolyst merged 12 commits intodevelopmentfrom
docs/readme
Apr 29, 2026
Merged

docs: add project README#134
sondresjolyst merged 12 commits intodevelopmentfrom
docs/readme

Conversation

@sondresjolyst
Copy link
Copy Markdown
Owner

Adds a README covering what the API does, tech stack, configuration keys, and how to run it.

sondresjolyst and others added 10 commits April 23, 2026 07:59
fix(electricity): surface NordPool warnings and refresh today+tomorrow on daily run
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
chore: add migration for merged admin page and sensor photo models (#…
Npgsql maps DateTime.MinValue to PostgreSQL -infinity. Rows created
before CreatedAt tracking was introduced received -infinity when the
column was added, causing GetStatsHistory to filter them all out and
return an empty result, breaking the admin stats chart in prod.

The migration sets those rows to NOW() so the chart has usable data.
- Lock CORS to known origins (garge.no, dev.garge.no), configurable via appsettings
- Remove EnableSensitiveDataLogging and CustomDbCommandInterceptor to stop PII leaking into logs
- Fix email enumeration on password reset and resend-verification endpoints
- Replace non-CSPRNG Random with RandomNumberGenerator for verification codes
- Skip Authorization header in request logging middleware
- Add self-service account deletion endpoint (DELETE /api/users/{id}/account)
- Add personal data export endpoint (GET /api/users/{id}/export) per GDPR Article 20
Replace email addresses and User.Identity.Name in Serilog log calls
with opaque user IDs per GDPR agent rules. AuthController logs user.Id
on success paths; AdminController uses ClaimTypes.NameIdentifier for
the caller and user.Id for the target after lookup.
var result = await _userManager.DeleteAsync(user);
if (!result.Succeeded)
{
_logger.LogError("DeleteOwnAccount failed for {UserId}: {Errors}", id, result.Errors);
return BadRequest(result.Errors);
}

_logger.LogInformation("Account deleted by user {UserId}", id);
})
};

_logger.LogInformation("Data exported for user {UserId}", id);
@sondresjolyst sondresjolyst changed the base branch from main to development April 29, 2026 06:26
@sondresjolyst sondresjolyst changed the title Add project README docs: add project README Apr 29, 2026
@sondresjolyst sondresjolyst merged commit b3d2d0f into development Apr 29, 2026
1 check passed
@sondresjolyst sondresjolyst deleted the docs/readme branch April 29, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants