Skip to content

Add deprecate and resolve workflow run policy - #26

Merged
raylrui merged 7 commits into
mainfrom
feat/workflow-deprecate-resolove-policy
Aug 13, 2026
Merged

Add deprecate and resolve workflow run policy#26
raylrui merged 7 commits into
mainfrom
feat/workflow-deprecate-resolove-policy

Conversation

@raylrui

@raylrui raylrui commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Resolve: OrcaBus/service-workflow-manager#175.
Couple with PR: OrcaBus/service-workflow-manager#176

Add AWS Verified Permissions support for the new workflow-run state transition endpoints.

Changes

  • Added the deprecated workflow-run action to GROUP_POLICIES.
    • Admin: allowed through the existing wildcard policy.
    • Curators: allowed through a dedicated policy.
    • Bioinfo: denied by default.
  • Added deprecated and resolved actions to the strict Cedar schema.
  • Kept resolved admin-only through the existing admin wildcard policy.
  • Excluded cancel from Verified Permissions because the endpoint is available to all authenticated users and does not use the AVP authorizer.
  • Updated the authorization permissions table.
  • Added tests covering:
    • Cedar schema action registration.
    • Curator access to deprecated.
    • Admin-only access to resolved.
    • Exclusion of cancel from the Cedar schema.

Permission Matrix

Action Admin Curators Bioinfo
Mark workflow run as deprecated
Mark workflow run as resolved
Cancel workflow run (AVP not applied)

@raylrui raylrui self-assigned this Aug 10, 2026
@raylrui raylrui added the enhancement New feature or request label Aug 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Verified Permissions definitions for workflow-run deprecation and resolution.

Changes:

  • Adds Cedar actions and curator deprecation policy.
  • Adds authorization tests and documentation.
  • Broadly upgrades project dependencies.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
infrastructure/authorization-manager/stage/stack.ts Adds curator deprecation policy.
infrastructure/authorization-manager/stage/cedarSchema.json Registers protected transition actions.
infrastructure/authorization-manager/stage/README.md Documents permissions.
test/authorization-manager.test.ts Tests schema and policies.
package.json Upgrades dependencies.
pnpm-lock.yaml Regenerates dependency lock data.
pnpm-workspace.yaml Removes resolution overrides.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

id: 'CognitoWorkflowDeprecatePolicy',
groups: ['curators'],
description: 'Permissions to mark a workflowrun as deprecated in WORKFLOW microservice',
actions: ['POST /api/v1/workflowrun/state/deprecate'],
Comment thread package.json
@raylrui
raylrui requested review from reisingerf and a balanced review from Copilot August 11, 2026 05:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file
Suppressed comments (1)

package.json:48

  • The PR description scopes this change to workflow-run authorization, but these production CDK/construct upgrades (along with the toolchain and lockfile churn) add a separate dependency-audit change that can affect synthesized infrastructure. Please either split the dependency remediation into its own PR or document its rationale and validation in this PR so the deployment impact can be reviewed against the stated scope.
    "@aws-cdk/aws-lambda-python-alpha": "2.263.0-alpha.0",
    "@orcabus/platform-cdk-constructs": "1.8.0",
    "aws-cdk-lib": "^2.263.0",
    "constructs": "^10.8.1"

@raylrui raylrui changed the title add workflow run deprecated resolved policy Add deprecate and resolve workflow run policy Aug 11, 2026
@raylrui
raylrui merged commit 22e4512 into main Aug 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Separate Workflow Run Custom State API into Dedicated Endpoints

3 participants