Skip to content

chore(platform): provision managed OCR fallback prerequisites #49

Description

@Sam123ben

Purpose

Provision the optional managed OCR fallback needed by the reusable document-intelligence service. This is a platform prerequisite for confidence-based escalation, not a product-specific integration.

Current evidence

Read-only discovery on 2026-09-04 in tesseracthub-480811 showed documentai.googleapis.com is disabled (HTTP 403); no processor can currently be selected or tested.

Required reviewed changes

  • Enable Document AI through reviewed Terraform/GitOps, selecting the required regional residency explicitly.
  • Create a generic OCR processor only; no Kora-specific processor, bucket, credential, or label belongs here.
  • Define the service-account workload-identity principal and grant the smallest processor invocation permission possible.
  • Store only non-secret processor resource configuration in GitOps; no bearer tokens, service-account keys, signed URLs, or raw documents.
  • Add egress NetworkPolicy for only the managed API endpoint, with application timeouts/circuit breaker and tenant/provider policy enforcement.
  • Record retention, residency, pricing ceiling, audit and provider-data-use settings.
  • Validate from sandbox using synthetic data, then make the configuration eligible for Kargo canary promotion.

Acceptance evidence

A sandbox workload using workload identity invokes the configured processor on a synthetic document, returns provider-neutral evidence, emits redacted metrics/traces, and proves that callers cannot override provider endpoint, processor, credentials, or tenant residency.

Dependencies

  • Blocks fallback slice in feat: implement durable hybrid OCR execution path #46.
  • Does not replace legally approved, signed local-model artifact governance; local inference remains a separately gated path.
  • Does not authorize production rollout, IAM mutation, secret changes, or use of production documents.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions