Skip to content

feat(network): add a SHA-256 check step to the Windows trust guide - #1625

Merged
itsbkm merged 1 commit into
mainfrom
feat/windows-trust-sha256-step
Nov 25, 2026
Merged

itsbkm merged 1 commit into
mainfrom
feat/windows-trust-sha256-step

Conversation

@itsbkm

@itsbkm itsbkm commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 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.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

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.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Add SHA-256 verification before Windows certificate installation

✨ Enhancement 📝 Documentation 🕐 20-40 Minutes

Grey Divider

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.
Sources

frontend/src/app/trust/page.tsx[56-56]

      | 'windowsVerify'
Behavioral complexity 🟢 Low 🧩 Straightforward

  • 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.
Sources

frontend/src/app/trust/page.tsx[56-56]

      | 'windowsVerify'

frontend/src/lib/i18n/messages/en.json[3803-3803]

    "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.
Sources

frontend/src/lib/i18n/messages/en.json[3803-3803]

    "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.",
Assessed commit b8cc198
Diagram

graph TD
  Guide["Trust guide"] --> Download["CA download"] --> Check["Manual SHA-256"] --> Match{"Hashes match?"} -->|Yes| Install["Install CA"]
  Settings["FloCafe Settings"] --> Check
  Match -->|No| Reject["Do not install"]
Loading
High-Level Assessment

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.

frontend/src/app/trust/page.tsx

Documentation (32) +32 / -0
ar.jsonAdd Arabic Windows verification instructions +1/-0

Add Arabic Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/ar.json

bn.jsonAdd Bengali Windows verification instructions +1/-0

Add Bengali Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/bn.json

de.jsonAdd German Windows verification instructions +1/-0

Add German Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/de.json

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.

frontend/src/lib/i18n/messages/en.json

es.jsonAdd Spanish Windows verification instructions +1/-0

Add Spanish Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/es.json

fa.jsonAdd Persian Windows verification instructions +1/-0

Add Persian Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/fa.json

fil.jsonAdd Filipino Windows verification instructions +1/-0

Add Filipino Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/fil.json

fr.jsonAdd French Windows verification instructions +1/-0

Add French Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/fr.json

ha.jsonAdd Hausa Windows verification instructions +1/-0

Add Hausa Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/ha.json

hi.jsonAdd Hindi Windows verification instructions +1/-0

Add Hindi Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/hi.json

id.jsonAdd Indonesian Windows verification instructions +1/-0

Add Indonesian Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/id.json

it.jsonAdd Italian Windows verification instructions +1/-0

Add Italian Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/it.json

ja.jsonAdd Japanese Windows verification instructions +1/-0

Add Japanese Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/ja.json

jv.jsonAdd Javanese Windows verification instructions +1/-0

Add Javanese Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/jv.json

ko.jsonAdd Korean Windows verification instructions +1/-0

Add Korean Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/ko.json

mr.jsonAdd Marathi Windows verification instructions +1/-0

Add Marathi Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/mr.json

ne.jsonAdd Nepali Windows verification instructions +1/-0

Add Nepali Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/ne.json

nl.jsonAdd Dutch Windows verification instructions +1/-0

Add Dutch Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/nl.json

pa.jsonAdd Punjabi Windows verification instructions +1/-0

Add Punjabi Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/pa.json

pt.jsonAdd Portuguese Windows verification instructions +1/-0

Add Portuguese Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/pt.json

ru.jsonAdd Russian Windows verification instructions +1/-0

Add Russian Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/ru.json

sq.jsonAdd Albanian Windows verification instructions +1/-0

Add Albanian Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/sq.json

sw.jsonAdd Swahili Windows verification instructions +1/-0

Add Swahili Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/sw.json

ta.jsonAdd Tamil Windows verification instructions +1/-0

Add Tamil Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/ta.json

te.jsonAdd Telugu Windows verification instructions +1/-0

Add Telugu Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/te.json

th.jsonAdd Thai Windows verification instructions +1/-0

Add Thai Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/th.json

tr.jsonAdd Turkish Windows verification instructions +1/-0

Add Turkish Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/tr.json

uk.jsonAdd Ukrainian Windows verification instructions +1/-0

Add Ukrainian Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/uk.json

ur.jsonAdd Urdu Windows verification instructions +1/-0

Add Urdu Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/ur.json

vi.jsonAdd Vietnamese Windows verification instructions +1/-0

Add Vietnamese Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/vi.json

zh-tw.jsonAdd Traditional Chinese Windows verification instructions +1/-0

Add Traditional Chinese Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/zh-tw.json

zh.jsonAdd Simplified Chinese Windows verification instructions +1/-0

Add Simplified Chinese Windows verification instructions

• Adds the SHA-256 certutil command, comparison with FloCafe Settings, and warning not to install a mismatched file.

frontend/src/lib/i18n/messages/zh.json

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (1) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

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.
Code

frontend/src/app/trust/page.tsx[R56-57]

+      | 'windowsVerify'
     | 'windows1'
Evidence
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.
Code

frontend/src/lib/i18n/messages/en.json[3803]

+    "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.

main/routes/secure-network.ts[71-79]
main/security/lan-tls/x509.ts[353-360]
frontend/src/components/settings/SecureNetworkCard.tsx[346-354]
frontend/src/lib/i18n/messages/en.json[3803-3803]

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 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


Grey Divider

Tip of the day
💡 Did you know, you can copy the agent prompt from any finding and feed it to your IDE agent

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@itsbkm
itsbkm merged commit 946f7ce into main Nov 25, 2026
23 checks passed
@itsbkm
itsbkm deleted the feat/windows-trust-sha256-step branch November 25, 2026 16:29
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.

1 participant