Skip to content

bug(backend): Secret ORM model missing workflow_id column added by migration 20260324_017 #9975

Closed

Description

@mrveiss

Discovered during

Umbrella #9920 data-layer work (#9759 chain repair) — same class of defect as #9899.

Problem

Migration 20260324_017_add_workflow_secret_scope.py adds a nullable workflow_id column (+ ix_secrets_workflow_id index) to the secrets table and documents a workflow scope value, but the Secret ORM model (autobot-backend/models/secret.py) does not declare it. The model's docstring/scope comment also omits the workflow scope.

Impact

Fix

Add workflow_id: Mapped[str | None] = mapped_column(String(128), nullable=True, index=True) to Secret, matching the migration. Being fixed alongside #9899 (single ORM/migration sync PR).

Part of umbrella #9920.

Activity

  1. github-actions commented on Jun 11, 2026

    @github-actions
    Contributor

    PR #9989 (merged to Dev_new_gui) references this issue with a close keyword.

    fix(backend): sync AgentOrgNode and Secret ORM models with their migration columns (#9899)

    If this issue is fully resolved, close it manually. If work remains, no action is needed.

  2. mrveiss commented on Jun 11, 2026

    @mrveiss
    OwnerAuthor

    Fixed by PR #9989 (merged to Dev_new_gui, squash 712cf1059). Secret.workflow_id added matching migration 017, plus SecretScope.WORKFLOW and the synced scope comment. Verified secrets schema column-identical between create_all and migrations.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions