You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(network): add a SHA-256 check step to the Windows trust guide - #1625
The Windows steps on the public /trust page now start with a check: run certutil -hashfile FloCafe-Local-CA.cer SHA256 and compare the result with the SHA-256 fingerprint shown in FloCafe Settings on the FloCafe computer. If it differs, the file must not be installed.
Adds secureNetwork.windowsVerify to all 32 locale files. Windows' certificate dialog shows only a SHA-1 thumbprint, which the card no longer displays.
Verification
npm run i18n:check, npm run test:translations, npm run build:frontend, git diff --check.
The 31 non-English strings have not had a native-speaker review.
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
Add SHA-256 verification before Windows certificate installation
✨ Enhancement📝 Documentation🕐 20-40 Minutes
AI Description
• Add a Windows trust-guide step to verify the downloaded certificate against FloCafe Settings
before installation.
• Provide the safety instruction in all 32 supported locales.
Merge Risk 🟢 Low
Blast radius 🟢 Low💥 1 capability
1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
The changed page sequence and its locale messages jointly implement the single end-to-end behavior of guiding a device user through trusting FloCafe's certificate.
The locale files are presentation resources for the same onboarding flow, not independent capabilities.
Before: the Windows flow displayed the existing windows1, windows2, and windows3 instructions.
After: the flow prepends one windowsVerify instruction and adds the corresponding localized message keys.
New correctness condition: the added step must be included in the Windows sequence and each locale must provide the matching text key.
This is a direct ordered presentation change using the existing trust-page flow; no new algorithm, state protocol, concurrency, persistence, or cross-capability invariant is evidenced.
"windowsVerify": "Before installing, open Command Prompt in the folder with the downloaded file and run certutil -hashfile FloCafe-Local-CA.cer SHA256. The result must match the SHA-256 fingerprint shown in FloCafe Settings on the FloCafe computer. If it differs, do not install the file.",
Potential damage 🟡 Medium🩹 Temporary loss
If this changed onboarding behavior regresses when activated, Windows users may be unable to confidently complete the certificate-trust setup or may be blocked by confusing instructions.
The affected outcome is limited to establishing browser trust for FloCafe; no evidence indicates impact to stored application data, transactions, or unrelated consumers.
A user can retry the onboarding after the page or translation is corrected, or after reverting the UI change.
No persistent-state repair or external compensation is supported by the evidence.
"windowsVerify": "Before installing, open Command Prompt in the folder with the downloaded file and run certutil -hashfile FloCafe-Local-CA.cer SHA256. The result must match the SHA-256 fingerprint shown in FloCafe Settings on the FloCafe computer. If it differs, do not install the file.",
Keep the verification in the existing Windows guide. A hash displayed by the same public page as the download would not provide the independent reference available in FloCafe Settings, and Windows' certificate dialog shows a SHA-1 thumbprint rather than the SHA-256 value users need to compare.
Files changed (33) +34 / -1
Enhancement (1) +2 / -1
page.tsxPut certificate verification first in the Windows guide+2/-1
Put certificate verification first in the Windows guide
• Adds the localized verification step before the three existing Windows installation steps. Other platforms' step lists are unchanged.
en.jsonAdd English Windows verification instructions+1/-0
Add English Windows verification instructions
• Defines the new guide step: hash the downloaded certificate with certutil, compare it with the SHA-256 fingerprint in FloCafe Settings, and stop if it differs.
1. Frontend lint check missing from the verification record 📘 Rule violation☼ Reliability
Description
The PR changes frontend/src/app/trust/page.tsx and adds translation keys, but the PR description
lists only i18n:check, test:translations, build:frontend and git diff --check. The frontend
lint script (npm --prefix frontend run lint, which runs oxlint .) is not among them, so the
frontend change has no recorded lint pass. Lint is the prescribed check for frontend changes under
this rule, so a reviewer cannot confirm the new step's TSX passes the project's lint rules before
merge.
The PR changes a frontend TSX file and the prescribed checks for frontend changes include lint plus
build:frontend. The PR description's Verification section names build:frontend but not lint, and the
repo defines a frontend lint script.
AGENTS.md: Run Applicable Verification for Changed Artifacts: AGENTS.md: Run Applicable Verification for Changed Artifacts frontend/package.json[9-9]
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The PR changes `frontend/src/app/trust/page.tsx` (adds the `windowsVerify` step to the Windows steps) but its verification record omits the frontend lint check. Compliance rule 19 requires lint plus build:frontend for frontend changes.
## Fix Focus Areas
- frontend/src/app/trust/page.tsx[53-70]
- frontend/package.json[9-9]
## Recommended Fix
Run `npm --prefix frontend run lint` (or `npm run lint`) from the repo root, fix any reported issues in the changed files, and add the result to the PR description's Verification section alongside the existing i18n, translation, build and `git diff --check` results.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
2. Windows users reject valid certificates 🐞 Bug≡ Correctness
Description
windowsVerify tells users the certutil result must match the fingerprint in FloCafe Settings,
but does not explain that Settings inserts colons between hexadecimal byte pairs. Even when the
downloaded certificate is genuine, its continuous hash output looks different from the displayed
fingerprint, so users following the mismatch instruction may decline to install it.
+ "windowsVerify": "Before installing, open Command Prompt in the folder with the downloaded file and run certutil -hashfile FloCafe-Local-CA.cer SHA256. The result must match the SHA-256 fingerprint shown in FloCafe Settings on the FloCafe computer. If it differs, do not install the file.",
Evidence
The download endpoint serves the CA certificate under the filename used by the command, and FloCafe
computes its reference fingerprint from those certificate bytes. The formatter inserts colons
between uppercase byte pairs, and the Settings card displays that formatted value; the new
instruction does not account for its different presentation from certutil hash output.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The Windows command prints a continuous SHA-256 hex digest, while FloCafe Settings displays colon-separated byte pairs. A valid certificate therefore appears not to match under the new instruction.
## Fix Focus Areas
- frontend/src/lib/i18n/messages/en.json[3803-3803]
- frontend/src/lib/i18n/messages/ar.json[3803-3803]
## Recommended Fix
Update `windowsVerify` in all 32 locale files to tell users to ignore the colons and letter case when comparing the two fingerprints, while still requiring every hexadecimal digit to match.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Tip of the day
💡 Did you know, you can copy the agent prompt from any finding and feed it to your IDE agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/trustpage now start with a check: runcertutil -hashfile FloCafe-Local-CA.cer SHA256and compare the result with the SHA-256 fingerprint shown in FloCafe Settings on the FloCafe computer. If it differs, the file must not be installed.secureNetwork.windowsVerifyto all 32 locale files. Windows' certificate dialog shows only a SHA-1 thumbprint, which the card no longer displays.Verification
npm run i18n:check,npm run test:translations,npm run build:frontend,git diff --check.🤖 Generated with Claude Code