Skip to content

refactor: deploy script changes#64

Draft
brunomenezes wants to merge 11 commits into
mainfrom
changes/migration-fly-io
Draft

refactor: deploy script changes#64
brunomenezes wants to merge 11 commits into
mainfrom
changes/migration-fly-io

Conversation

@brunomenezes

Copy link
Copy Markdown
Collaborator

Summary

Code changes to support different deployment strategies. Before, it was tailored to a straightforward PaaS deployment (heroku), which means:

  1. run the processor -> triggers migrations to be applied before automatically.
  2. run the graphQL API already have access to the structured database.
  3. Everything is self-contained and shared between the different components.

The changes goal is to address the following:

  • Support different deployment strategies/pieces due to the credential access level the operator wants to give on each part of the workflow, e.g. migration, indexer and graphQL API.
  • Depending on the operator strategy, it can be broken down into different levels of access depending on which application component they are deploying.

…d command. Update the description to highlight that.
…ode:child_process for safer control mechanism

* Replace deprecated url.parse with URL API.
* Replace shell creation with child_process spawn function for better process control, security and portability.  It avoid embedding credentials in a string command that may leak in logs or if misquoted may change the underline command or due to shell injection cause security issues.
* Remove unused npm-scripts. It only targets the sqd npm-script and pass arguments to it simplifying the list of existing npm-scripts.
@socket-security

socket-security Bot commented Jul 22, 2026

Copy link
Copy Markdown

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

- The rate-limit is really tight through cannon/cli. Besides experimentation with sequential calls some of the requests will fail.
@brunomenezes
brunomenezes force-pushed the changes/migration-fly-io branch 2 times, most recently from 0b2febb to eecb6ec Compare July 22, 2026 16:21
@brunomenezes
brunomenezes force-pushed the changes/migration-fly-io branch from eecb6ec to 210e18c Compare July 22, 2026 16:35
@brunomenezes
brunomenezes force-pushed the changes/migration-fly-io branch from 210e18c to d64c4e8 Compare July 22, 2026 16:43
…t when configured.

* Add a new PROCESSOR_PROMETHEUS_PORT_*  to control the port the metrics will be exposed.
* Update documentation
* Update processor tests.
* Remove the ENV PROCESSOR_PROMETHEUS_PORT declaration in the dockefile.
@brunomenezes
brunomenezes force-pushed the changes/migration-fly-io branch from 844f574 to 1ef9675 Compare July 23, 2026 15:08
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