| From: | Sehrope Sarkuni <sehrope(at)jackdb(dot)com> |
|---|---|
| To: | Noah Misch <noah(at)leadboat(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Add Dockerfile for OSS Scanner |
| Date: | 2026-10-17 14:22:27 |
| Message-ID: | CAH7T-arX0=_g14A2dx0d1dJXc=FeFY_qYjb8Y=i9Mp-bgF44qw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Oct 16, 2026 at 11:22 PM Noah Misch <noah(at)leadboat(dot)com> wrote:
>
> On 2026-10-08, Anthropic launched its "OSS Scanner"
> (https://www.anthropic.com/research/launching-opt-in-vuln-finding-service-for-open-source)
> The plan is to enroll security(at)postgresql(dot)org for automated notification of
> vulnerabilities it finds. One of the steps is to provide a Dockerfile that
> the scanner will use to get a PostgreSQL build. The attached patch adds one
> to postgresql.git. It mimics CI.
I tried v1 on master (6a2edf2a1e6) using the recipe in the header
comment and the enroll-postgresql branch. tools/check built it in
about seven minutes on my 16-core box.
I ran the full suite inside the finished image, without network access,
as the postgres user:
Ok: 402 Skipped: 24 Fail: 3
The three failures were test_aio 001_aio, 003_initdb, and
004_read_stream, all reporting:
FATAL: could not setup io_uring queue: Operation not permitted
Docker's default seccomp profile blocks io_uring. With liburing-dev
installed, meson enables io_uring support, but the tests fail when they
attempt to use it.
I removed liburing-dev and added -Dliburing=disabled. All four test_aio
tests then passed, and the full suite was clean:
Ok: 405 Skipped: 24 Fail: 0
Attached v2 also puts the packages one per line, sorted, to minimize
future diffs.
I thought about adding this to pg-ci.yml too, but it'd be mostly the
same as linux-meson-64. If we want a check, maybe a separate workflow
job limited to src/tools/oss-scanner changes. And I think it sends out
it failures too so you'll get notified regardless.
Regards,
-- Sehrope Sarkuni
Founder & CEO | JackDB, Inc. | https://www.jackdb.com/
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-Add-Dockerfile-for-github.com-anthropics-oss-scan.patch | application/x-patch | 5.2 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pierre Forstmann | 2026-10-17 14:31:59 | Re: Reduce logging during prepared transaction recovery |
| Previous Message | harrisontbooth | 2026-10-17 14:07:14 | Re: pg_ctl start may return 0 even if the postmaster has been already started on Windows |