Skip to content

Phase 4b: migrate messaging credential/provider binding to manifest plans #4393

Description

@sandl99

Part of #3896.

Summary

Migrate messaging credential/provider binding to the manifest plan and setup applier.

The production paths for onboard, channel add/remove/start/stop, rebuild, and destroy should stop rebuilding provider names, env keys, placeholders, attach/detach/delete intent, and credential rotation metadata from scattered channel-specific code.

Scope

  • Drive OpenShell messaging provider create/update/attach/detach/delete from SandboxMessagingPlan.credentialBindings.
  • Preserve existing provider names, env keys, and placeholders, including Slack bot/app token providers and the WeChat bridge provider.
  • Persist providerCredentialHashes from manifest credential inputs without storing raw values.
  • Keep provider rotation detection isolated per credential so one rotated channel does not trigger unrelated bridge rebuilds.
  • Update channel add/remove/start/stop and rebuild paths to consume the compiled credential plan instead of getChannelDef token metadata.
  • Keep provider deletion behavior on sandbox destroy compatible with existing provider names.

Acceptance Criteria

  • OpenShell command shapes for provider upsert, attach, detach, and delete match current externally visible behavior.
  • Sandbox create/rebuild receives the same messaging provider attachments as before.
  • Credential rotation tests prove Telegram, Discord, Slack bot/app tokens, and WeChat rotate independently.
  • No raw secret appears in CLI output, registry files, plans, snapshots, or test fixtures.
  • Provider binding production code no longer contains per-channel provider suffix/env-key branches after cutover.

Activity

  1. added
    refactor
    VRDC
    on May 28, 2026
  2. changed the title [-][Messaging] Migrate credential/provider binding to manifest plans[/-] [+]Phase 4b: migrate messaging credential/provider binding to manifest plans[/+] on May 28, 2026
  3. added
    area: messaging
    enhancement
    and removed on Jun 3, 2026
  4. self-assigned this
    on Jun 8, 2026
  5. removed
    enhancement
    on Jun 8, 2026
  6. sandl99 commented on Jun 15, 2026

    @sandl99
    CollaboratorAuthor

    Closing phase 4b as complete. The provider-binding migration scope is covered by PR #5338: channel provider names/placeholders remain compatible while credential ownership, metadata, persistence, plan validation, and setup-applier/provider flows are routed through manifest-backed messaging plans. Any residual provider cleanup should be tracked as targeted follow-ups rather than reopening phase 4b.

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

Metadata

Metadata

Assignees

Labels

VRDCarea: messagingrefactor

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions