Skip to content

Wire CONTACT_EMAIL_PROFILES_BY_HOST into PostKit Function App settings #8

Description

@patoperpetua

Parent: #2
Imported from: singleton-sd/poc-plattform-kit#272

Goal

Make host-based PoC sender profiles work in production on the PostKit Function App without manual one-off portal edits.

Host-based overrides are resolved in @singleton-sd/post-kit-email (lifted from @poc-plattform-kit/email) when CONTACT_EMAIL_PROFILES_BY_HOST is present in the runtime environment. The PostKit Function App (ssd-postkit-api-prod-ae in rg-ssd-global) must expose that env var so Contact uses mapped sender/inbox per allowlisted Origin.

Scope

  • Add CONTACT_EMAIL_PROFILES_BY_HOST to PostKit Function App infra (infra/function-app.bicep or equivalent app setting).
  • Document how ops sets/updates the host map for new PoCs.
  • Document example JSON for a second PoC host (e.g. InkAds) consistent with .env.example.

Out of scope:

  • Nest API contact endpoint wiring in poc-plattform-kit.
  • Running Forward Email domain provisioning (see the colocated provisioner issue).
  • Implementing this on ssd-pocpk-decap-oauth-dev-ae / infra/decap-oauth.bicep (contact is moving off that host).

Acceptance criteria

  • Deployed Function App ssd-postkit-api-prod-ae has CONTACT_EMAIL_PROFILES_BY_HOST available at runtime.
  • Bicep/infra change is committed with any required deploy script notes.
  • Docs describe how ops sets/updates the host map for new PoCs on the Function.
  • Manual verification: Contact submit from an allowlisted Origin uses the mapped sender/inbox when configured.

Constraints

Agent-ready checklist

  • Goal and scope are clear.
  • Acceptance criteria are explicit.
  • Depends on: email library lift + Function App existing on main.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedHas an unresolved Depends on: line (docs/github-source-of-truth.md, section 5) — do not claiminfrastructureInfrastructure / Azure / CI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions