Skip to content

[CRITICAL][KYC STORAGE] Move encrypted identity documents behind private blob access #175

Description

@Obiajulu-gif

Summary

Encrypted KYC envelopes are stored in blobs configured as publicly readable. Encryption reduces exposure, but public object access enables unlimited ciphertext harvesting and makes authorization dependent on cryptography alone.

Repository evidence

  • app/api/upload/route.ts uploads KYC payloads with access: "public".
  • Application routes already provide authenticated/signed document access paths.

Scope

  • Store KYC objects in private/non-public storage and serve them only through the authorized document proxy.
  • Migrate existing object references without exposing raw storage URLs.
  • Add access logging, cache-control, and revocation behavior.

Acceptance criteria

  • A raw KYC blob URL is not anonymously retrievable.
  • Authorized owner/admin signed access still works for the configured TTL.
  • Existing public objects are migrated or revoked with an auditable inventory.

Tests

  • Anonymous-versus-authorized retrieval tests and expired/revoked token tests.
  • Migration test for an existing KYC record.

Non-goals

  • Changing public vehicle images or the encryption algorithm.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions