Skip to content

Finoptic blocks (aws_call, supervisor_approval) and image workflow - #1

Merged
maordavidov merged 2 commits into
mainfrom
finoptic/blocks
Oct 18, 2026
Merged

maordavidov merged 2 commits into
mainfrom
finoptic/blocks

Conversation

@maordavidov

Copy link
Copy Markdown

T76 spike, slice S3.

  • packages/blocks/finoptic-aws: aws_call. Creds from the Finoptic broker per call (env URL + secret), in-memory SDK v3 client, only the API result returned, credential material redacted from results and errors.
  • packages/blocks/finoptic-approval: supervisor_approval. Posts to Finoptic, pauses with ctx.run.pause (same as core Wait for Approval), anything but action=approve stops the flow. Resume contract in the block README.
  • .github/workflows/finoptic-images.yml: PRs test the blocks on GitHub-hosted runners. A finoptic-<version> tag builds app + worker (amd64) on the CodeBuild runner finoptic-openops-release and pushes to ECR finoptic/openops-app / finoptic/openops-worker.

Tests: nx test blocks-finoptic-aws 12 passed, blocks-finoptic-approval 7 passed; lint and build pass.

Not merged, not released. Needs the CodeBuild project from finoptic-infra and the ECR repos from S1 before the tag job can run.

Co-Authored-By: Claude Sonnet 5.5 noreply@anthropic.com

maordavidov and others added 2 commits October 18, 2026 22:21
finoptic-aws: aws_call runs one AWS SDK v3 call with short-lived credentials
fetched from the Finoptic broker per call; output is only the API result,
credential material is redacted from results and errors.

finoptic-approval: supervisor_approval posts to Finoptic, pauses the run
(ctx.run.pause) and stops the flow on anything but action=approve.

finoptic-images.yml: tests the blocks on PRs; on a finoptic-<version> tag
builds the app and worker images (amd64) and pushes them to ECR.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011p3Hfsd7txb9ATxLizJBPh
…pproval on resume

- aws_call: X-Broker-Secret, FINOPTIC_BACKEND_URL + /internal/broker/resolve,
  request {executionId, handle}, response {accessKeyId, secretAccessKey,
  sessionToken, expiration}
- supervisor_approval: X-Broker-Secret; on RESUME continue only when
  action=approve AND GET /internal/automations/approvals/:id says approved
- contract.json shared with finoptic-infra's backend, tested here

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011p3Hfsd7txb9ATxLizJBPh
@maordavidov
maordavidov merged commit b37d0ef into main Oct 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant