Guides
Vulnerability scans
Every deploy scans the image it built before anything runs. That verdict is fixed at the moment of the deploy, though, and a vulnerability published the next day changes nothing about it. To find those, a project scans its running images again: on a schedule it chooses, or when somebody asks.
At deploy
The scan runs between the build and anything being created. A fixable CRITICAL finding refuses the deploy, naming the package and the version that fixes it. Everything else is recorded and shown on the deployment's Scan tab, where the list filters by severity and by whether a fix exists. A scan that could not finish does not refuse the deploy; the deployment says it was not checked, which is not the same as clean, and is not charged for the scan.
Scanning running images again
Each project has a Security page in the console. It shows what every image the project runs is exposed to now, from its newest completed scan, the deploy's own included. It is also where the schedule is set and where Scan now is.
| Schedule | When an image is checked |
|---|---|
| Off | Never. The default for every project. |
| Daily | Once a day, after 00:00 UTC. |
| Weekly | Once a week, after Sunday 00:00 UTC. |
| Monthly | Once a month, after the 1st at 00:00 UTC. |
| Every N days | N days after its last scan, N from 1 to 90. |
A check runs within the hour after its time. An image already scanned since then, by a deploy or by Scan now, is not scanned again, and a check missed while the platform was busy runs at the next opportunity rather than a period late.
What it costs
Each completed re-scan is charged as security.rescan, one per image however many agents run it. A scan that could not finish is free. So is one answered from the image's last scan because the vulnerability database has not changed since: the answer cannot have changed either, so asking twice costs nothing. The schedule shows an estimate of scans a month beside the choice.
When the result changes
Your organization's admins get an email, and an inbox notice, when a re-scan finds the image's critical or high findings have changed since its last scan: advisories that are new, and advisories no longer found. The email has a table of each, the image's current totals and a link to the scan results on the Security page. Medium and low findings move almost daily as the vulnerability database is updated, so they are on the Security page and not emailed. A scan with nothing changed sends nothing.
A new advisory that would refuse a deploy today is sent as an alert instead, with the same tables. A scan sends one email at most, and Scan now reports a change just as a scheduled scan does. Nothing is stopped either way: the image keeps running until you upgrade the package and redeploy.
From the CLI
elan scan # scan what this project runs, now
elan scan schedule # show the schedule, its next run and estimate
elan scan schedule weekly # off | daily | weekly | monthly
elan scan schedule every 14 # every N days, 1 to 90Outside a project directory, pass --project. The same four operations are on the Deployments API.