Skip to content

Security

Sovyn checks every version of your app for security problems. You do not have to start anything: the checks are part of every deploy. There are two of them: the scan of the source code runs before any code of the app or of its packages runs, the search for keys runs after the build, when the version is published.

Every deploy first runs a scan of the source code of the app, before the packages are installed and before anything is built:

  • Sovyn’s own rules and Opengrep, an open source code checker, look for risky code.
  • The packages the app uses are checked against known vulnerabilities.

After the build, when the version is published, Sovyn also searches for API keys and other keys (such as sk_live_…, AKIA… or private keys) in the source code, in the bundled functions and in the frontend that every visitor loads.

The result belongs to the version. Each problem found is a finding, with the rule that found it, its severity (critical, high, medium, low or info) and the place in the code. A key that was found only appears with its beginning, never with its value.

  • Development: findings do not hold anything up. The version is published to development, so you can keep building.
  • Production: the move to production is refused while a finding is neither fixed nor acknowledged. Your assistant tells you which finding it is and what to do.

A finding about a package says where the package ends up, because that decides how much it matters:

Where Runs where Effect on production
a function (named) on the server, with access to the app’s data blocks until fixed or acknowledged
the frontend in the browser of your end users blocks until fixed or acknowledged
only in the build (such as Vite and its plugins) only while building; nothing of it is delivered named, does not block
in no bundle nowhere named, does not block

A finding that concerns nothing delivered does not need an acknowledgement. It is still worth updating the package. If Sovyn cannot tell where a package sits, it counts as delivered and blocks.

If the same package moves, for example from the frontend into a function, an acknowledgement stays valid; the finding shows the new place.

The rules of the app are checked too. Such a finding of the manifest is, for example, a membership list that every signed-in end user can add themselves to, which would let anyone get access. It blocks the move to production in the same way.

Fixing is the normal way: your assistant changes the code or the rules and deploys again.

Sometimes a finding is a risk you consciously take on. Then a member of your team can acknowledge it: in the console in the Security tab with Acknowledge on the finding, or in the conversation with the assistant:

  • Your assistant may only do this after you have seen the finding and explicitly said that you take on the risk. It never does it on its own. The acknowledgement is stored with your account.
  • It applies to this finding, not to a version or an environment. If the same finding comes back in a later version, it stays acknowledged.
  • If the code or the rules behind it change, that is a new finding, and it needs a new decision.

If a part of the scan fails, the version counts as incompletely checked. Even without findings, it cannot go to production, and none of its findings can be acknowledged, until a new deploy has been checked completely.

  • Development is private. Only members of your team reach the development environment, after signing in with their Sovyn login.
  • Files that end users upload are served from separate storage, never from the address of the app, and always as a download with their checked type. Images show as images; a link to a PDF downloads it.
  • Functions reach outside services only over web addresses (ports 80 and 443). Private networks and internal addresses stay blocked.
  • Packages cannot run their own install scripts during the build.