Development - #109
Conversation
Merge pull request #94 from jordanlambrecht/development
…ker into development
Knip Code AnalysisFound 9 total issues
View details
Use |
|
🚫 Security audit failed Critical Failures
Passed (37/38)
Summary: 37/38 checks passed See |
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 29924532 | Triggered | Generic High Entropy Secret | 461589c | src/lib/adapters/mam.test.ts | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 199 out of 497 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (2)
src/app/api/upload-image/route.ts:96
- The validation bound now uses
IMAGE_EXPIRATION_MAX, but the error message still hardcodes31536000. Update the message to reflect the actual configured max (ideally interpolatingIMAGE_EXPIRATION_MAX) so the client gets accurate guidance if the constant changes.
if (!Number.isFinite(parsed) || parsed < 0 || parsed > IMAGE_EXPIRATION_MAX) {
return NextResponse.json(
{ error: "expiration must be a positive number of seconds (max 31536000)" },
{ status: 400 }
)
}
src/app/api/tag-groups/route.ts:49
- The limit check uses
LONG_STRING_MAX, but the error message still says “500 characters or fewer”. To keep error messages consistent with actual validation (and future changes), interpolateLONG_STRING_MAXin the message or update the copy to match the constant’s value.
if (typeof description === "string" && description.length > LONG_STRING_MAX) {
return NextResponse.json(
{ error: "Description must be 500 characters or fewer" },
{ status: 400 }
)
}
…rorAt + isManual tracking
Closes #118