Skip to content

Operations

Components

A deployment of proTES consists of:

  • the app (the TES API), served by Gunicorn;
  • one or more Celery workers, which track forwarded tasks at the TES instances (see Task tracking);
  • RabbitMQ, the broker between the app and the workers;
  • MongoDB, which stores the tasks (database taskStore, collection tasks), their provenance (see Task provenance) and the entries of the plugin store (see Plugin store);
  • optionally Flower, a web UI to monitor the Celery workers.

The Docker Compose setup and the Helm chart run all of them.

Logs

The app and the workers log to standard error (section log of the config): each request to the API, the plugins loaded and failed, the TES instances that a task is forwarded to, and errors of the TES instances. Read them with docker compose logs or kubectl logs.

Task tracking

The state of a task is the state last tracked from the TES instance that runs it (see Tasks). The Celery workers poll each unfinished task at its TES instance every polling.wait seconds (see Tasks): each poll is a short Celery task, which schedules the next one, so no worker process is held for the runtime of a task, and long tasks don't keep the others from being tracked. Once a task has finished, its state, logs and outputs are stored (tracking writes no other fields of a task, so its tags are kept), and tracking ends. proTES gets the logs in the view FULL; if the TES instance reports another state there than in the poll (e.g., a TESK that briefly answers SYSTEM_ERROR while the Job of a task is finishing), proTES stores neither the state nor the logs yet. It logs a warning (Polling again) and polls the task again after polling.wait seconds, until both views agree. After at most 5 such polls in a row (the count, tracking.disagreements, starts again when the TES instance reports an unfinished state), it stores the final state of the last poll, without the logs of the view FULL. With post_task.max_log_size: 0, proTES doesn't get the view FULL, so it stores the final state of the first poll that reports one. A canceled task stays CANCELING until its TES instance has finished it, or answers that it no longer has it (404; then CANCELED), or until the first poll more than polling.max_cancel_time seconds after the cancel (default 3600; later if its tracking has to be resumed first): then, e.g., if the TES instance was decommissioned, keeps failing or keeps reporting the task as running, the task is set to SYSTEM_ERROR, its tracking ends, and a warning is logged (not canceled within ... seconds); it may still run at the TES instance, so check there. Other unfinished tasks that the TES instance keeps answering it no longer has (404 or 410; e.g., if it lost or deleted them) are polled on for polling.max_gone_time seconds (default 3600; counted from the first of these answers in a row, any other answer starts again): then the first poll after that time sets them to SYSTEM_ERROR, adds a system log to the task (no longer has the task), ends their tracking and logs a warning (its backend no longer has the task). This can't be undone: a TES instance (or a proxy in front of it) that answers 404 for all its tasks for that long, e.g., after its base path changed, ends the tracking of all of them, as does a first poll answered 404 after the workers were down for longer; raise max_gone_time (or stop the workers) for such changes. After polling.attempts consecutive failed polls (e.g., while the TES instance or the identity provider is down), the state of the task is UNKNOWN until the TES instance answers again, and polls back off to every polling.max_wait seconds; such tasks are not marked as failed, as they may still be running.

The workers need little capacity per task: a worker process is busy only for the duration of a poll (one request to the TES instance). As a rule of thumb, one process tracks about as many tasks as polls fit into polling.wait; e.g., with polls of 0.1 seconds and the default wait of 3 seconds, about 30 tasks. Raise --concurrency (processes per worker) or the number of workers for more unfinished tasks, and watch the queue length in Flower or RabbitMQ: if polls wait in the queue, tasks are polled less often than configured, but are still tracked.

Each poll schedules the next one with a delay (wait, or up to max_wait seconds while polls back off). With RabbitMQ, the broker keeps the delay (Celery's native delayed delivery): proTES sends its polls to its own queue, protes, a quorum queue on the topic exchange protes, and a scheduled poll waits in a chain of delay queues (celery_delayed_0 to celery_delayed_27, quorum queues on topic exchanges of the same names, which the workers declare when they start, shared by all Celery apps of the RabbitMQ virtual host) until it is due, and only then reaches the queue. So a worker gets only polls that are due, and tasks whose polls back off (e.g., because their TES instance is down) don't delay the polls of other tasks, also of new ones. This needs RabbitMQ 3.10 or later with quorum queues (the bundled RabbitMQ of the Helm chart and of Docker Compose has them). On an external broker, proTES's user must be allowed to declare (configure), write and read the queues protes and celery_delayed_0 to celery_delayed_27, and the exchanges protes, celery_delayed_0 to celery_delayed_27 and celery_delayed_delivery, in its virtual host, in addition to the queues and exchanges that Celery always uses (celery, celeryev, celery.pidbox, reply.celery.pidbox and the queues of these exchanges). Workers log a warning when they start (Exchange celery is a direct exchange and native delayed delivery do not support direct exchanges): it is about the queue celery of earlier versions, which they still consume until a later release (see Upgrading), and expected.

A worker that can't set up the delay queues and their bindings (e.g., without these permissions, or if the delay queues exist in the virtual host with another type, declared by another Celery app) doesn't start: it exits with Celery worker can't set up delayed delivery in RabbitMQ and the broker's error, as scheduled polls would be lost otherwise. Fix the broker's permissions or version then, or give proTES a virtual host of its own. A worker that can't reach the broker when it starts exits the same way after 10 attempts (about 2 minutes), and is restarted (by Kubernetes or Docker Compose).

RabbitMQ 4 limits how often a quorum queue delivers a message again (its delivery limit, 20 by default): a poll that goes back to the broker more often (e.g., because the worker running it is lost again and again) is dropped, and its task's tracking is resumed later (see below).

A worker reserves at most concurrency x prefetch multiplier messages that are due (--concurrency, --prefetch-multiplier; the multiplier is 32 by default, as in the Helm chart's worker.command, i.e., a window of 64 messages with the chart's 2 processes). Without native delayed delivery, i.e., with brokers other than RabbitMQ, or for polls in the queue celery of earlier versions, the worker holds the message of a scheduled poll, unacknowledged, in this window until it is due. With RabbitMQ 4, Celery can't widen the window for held polls (it uses per-consumer prefetch limits, and a changed limit applies only to later consumers), so once held polls fill it, further polls, also the first polls of new tasks, wait in the queue until a held poll is due: e.g., with a multiplier of 1, two tasks whose TES instance is down (polls backed off to 600 seconds) delayed the tracking of all other tasks by up to 10 minutes. For such setups, size the multiplier to the number of tasks each worker process tracks at once (unfinished tasks divided by the processes of all workers), but not far beyond, as a larger window has costs:

  • Reserved messages stay unacknowledged until their poll has run, also while they wait behind the other polls of the window, and RabbitMQ closes the channel of a worker that holds a message for longer than its acknowledgement timeout (consumer_timeout, 30 minutes by default), which returns all of its messages. A message waits for the polls ahead of it in its worker process once it is due (up to the multiplier), and, if the worker holds it until it is due, up to max_wait before. A poll makes up to four requests (a token from the identity provider, a probe of a discovered TES instance, and the task in the views MINIMAL and, once it has finished, FULL), each limited by the timeouts in Configuration (custom.tes.timeout counts the time without data, so a TES instance that answers slowly can take longer). With the defaults, polls of a TES instance that doesn't answer take about 20 seconds each, so 32 of them plus a max_wait of 600 seconds stay below 30 minutes; with slower polls, a larger multiplier or a larger max_wait, raise consumer_timeout in RabbitMQ's configuration, or lower the multiplier.
  • Polls are spread less evenly over several workers.
  • A worker that shuts down returns more reserved polls to the broker (see below).

Polls are acknowledged after they ran (acks_late), so the broker delivers the poll of a worker that is lost (e.g., killed after its grace period) again, and polls that a worker reserved but hasn't run yet go back to the broker when it shuts down. A poll delivered again that had started before (the stored task records the last poll that started, and its attempt, in tracking.started) doesn't get the view FULL of a finished task, as getting the logs may have cost its worker (e.g., out of memory): it stores the final state with the logs of its own view. A poll delivered again that never started (e.g., one returned by a worker that shut down, also a retry of a poll that failed because MongoDB was unavailable) gets the view FULL as usual, so the task is stored with its logs. Polls that fail because MongoDB is unavailable are retried, with backoff up to polling.max_wait seconds, and those that fail because RabbitMQ is go back to it. Each task is tracked by one chain of polls (the stored task holds the identifier of its current poll and when it ran, tracking). When a worker starts, and then every polling.max_wait seconds, it resumes the tracking of stored unfinished tasks that were forwarded to a TES instance but haven't been polled for three times polling.max_wait seconds (or ever), e.g., because RabbitMQ lost its data. Upgrades and restarts of the workers therefore don't stop the tracking of tasks; they only delay their next polls. Tasks being canceled (CANCELING) are resumed too (for those canceled by versions before 0.6.0, which didn't store the time of the cancel, max_cancel_time counts from then on); those that earlier versions stored as CANCELED are not.

The same poll may run twice at once, e.g., if RabbitMQ delivers it again after consumer_timeout while its first run still waits for the TES instance. Each run claims the tracking with a token of its own (tracking.claim), and only the run that claimed it last stores unfinished states, ends the tracking (after max_gone_time or max_cancel_time, or as the TES instance deleted a task being canceled) and schedules the next poll, so that a stale run doesn't write over the state that the later run stored (e.g., reopen a task that it finished). A stale run that gets the final state of the task still stores it with its logs (final states don't change at the TES instance); no poll is scheduled after that (except for tasks that versions before 0.6.0 stored as CANCELED). A stale run that checks its token just before the later run claims the tracking may still leave one more poll, which finds nothing new to store. Workers of earlier versions don't check the token: their runs can still write over the state of upgraded workers until all workers are upgraded.

Unfinished states never replace a final state that a poll stored; they do replace one that the workers stored without a poll (tracking.finished_at), e.g., SYSTEM_ERROR of a task whose creation seemed cut off, but whose tracking started after all. Its tracking then goes on as for any other task: a poll that gets the same final state stores its logs (also a poll delivered again), and tracking.finished_at is removed as soon as a poll stores a state, so that the final state that a poll stores is kept.

Tasks whose creation was cut off (e.g., if a Gunicorn worker was stopped while it forwarded them, during an upgrade) stay in state UNKNOWN without identifier at a TES instance: they can be neither tracked nor canceled. The workers set them to SYSTEM_ERROR when they resume the tracking of tasks, once the tasks are older than post_task.max_create_time seconds (default 3600; see Tasks). As for tasks that a TES instance did not confirm, the task may run at a TES instance: it is kept, and the logs of the API name the TES instances that were tried.

Task owners

Only the owner of a task can read and cancel it through the API, not admins (see Task ownership). Operators work on the database instead (database taskStore, or the one in MONGO_DBNAME), e.g., with mongosh; the owner of a task is in user_id of its document in the collection tasks, and as owner roles (g2 rules) in the collection policy_rules. Owners are subjects (sub claims) of the users' access tokens, namespaced by their issuer (<issuer>|<sub>, or the issuer's namespace), also with a single trusted issuer; they are bare for an issuer with namespace: "". <sub> below stands for that form. Tasks of service clients belong to client:<client ID> (user_id, and v0 of their owner roles):

// tasks of a user
db.tasks.find({ user_id: "<sub>" }, { "task.id": 1, "task.state": 1 })
// tasks of a service client (or, before 0.7.0, of a user whose subject
// starts with `client:`)
db.tasks.find({ user_id: "client:<client ID>" }, { "task.id": 1, "task.state": 1 })
db.tasks.find({ user_id: /^client:/ }, { user_id: 1, "task.id": 1 })
// tasks without owner, e.g., created by earlier versions (not tombstones)
db.tasks.find(
  { user_id: { $exists: false }, deleted_at: { $exists: false } },
  { "task.id": 1 }
)

Tasks that a service client created for a user it named (see Acting for users) belong to the client; the user is in acting_for of the task document, in the form of owners (<sub>), and owns nothing:

// tasks that service clients created for a user
db.tasks.find({ acting_for: "<sub>" }, { user_id: 1, "task.id": 1 })

Tasks created before owners were recorded have no owner, so nobody can see them through the API. To give such a task to a user, add the two owner roles in the database (the permissions API is off), and restart proTES (see below):

db.policy_rules.insertMany([
  { ptype: "g2", v0: "user:<sub>", v1: "owner", v2: "/ga4gh/tes/v1/tasks/<id>" },
  { ptype: "g2", v0: "user:<sub>", v1: "owner", v2: "/ga4gh/tes/v1/tasks/<id>:cancel" },
])

(with user: replaced if your config sets security.access_control.subject_prefix; check that both rules are stored, db.policy_rules.find({ v2: /\/tasks\/<id>(:cancel)?$/ })), and set user_id of the task to the user's <sub> in the database. To purge tasks, delete their documents and their owner roles, e.g., those without owner (leave tombstones, deleted_at, in place: see below):

db.tasks.deleteMany({ user_id: { $exists: false }, deleted_at: { $exists: false } })

To delete finished tasks regularly, set a retention of finished tasks instead: it removes their owner roles, and leaves tombstones (documents with task.id and deleted_at only) that keep their identifiers from being used again. Tombstones are not tasks: never delete them, and leave them out of queries of tasks (deleted_at: { $exists: false }), as above.

Owner roles left by deleted tasks don't give access to other tasks (their owners get 404 Not Found, and their identifiers are not used for new tasks), but are kept in memory by each instance of proTES; delete them together with the documents, in the database (db.policy_rules.deleteMany({ ptype: "g2", v2: { $in: [...] } }), with the paths of the deleted tasks, and those ending in :cancel).

Rules of access control changed in the database directly (e.g., with mongosh) apply only once proTES is restarted (all instances; e.g., kubectl rollout restart deployment/<app> with the Helm chart, <app> as in its README, Names and labels), as proTES keeps the rules in memory and notices only the changes made through FOCA, e.g., via its permissions API if turned on (see FOCA's migration guide to 0.18).

Abusive tasks

Admins can't cancel the tasks of others through the API. To stop a task, cancel it at the TES instance that runs it: its URL is in tes_endpoint.host of the task document, and its identifier there in tes_endpoint.task_id; the operators of the TES instance can also cancel it on their side. If a worker still tracks the task, proTES records its new state; otherwise, set task.state of the document to CANCELED. To keep a user from creating more tasks, remove them from the groups with the role user at the identity provider; to cap the number of tasks that each user can have, set task limits. To keep proTES from sending tasks to a TES instance, remove it from custom.tes.backends, or, if it was discovered in a service registry, have a registry admin remove its verification (it is no longer used once the registry has been read again, see refresh_interval in Discovery in a service registry).

Usage records

With accounting of resource usage, each task that finished at its TES instance has a record in the collection usage (by task identifier, _id), with its owner (user_id) and, for tasks that a service client ran for a user it named (see Acting for users), that user (acting_for, in the form of owners; null otherwise); each caller gets the totals of their own tasks at GET /usage, admins also anonymous totals over all tasks. The records hold the subject identifiers of the owner and the named user, which are personal data: they are kept until you delete them, also after their tasks are deleted (by the retention of finished tasks or by hand), so delete them once they are no longer needed for accounting, e.g., with mongosh:

// records of tasks that finished before a date
db.usage.deleteMany({ finished_at: { $lt: ISODate("2026-01-01T00:00:00Z") } })
// records of a user (e.g., on request)
db.usage.deleteMany({ user_id: "<sub>" })
// a user named by service clients (e.g., on request): removed from the
// records, which the clients' totals keep, and from the tasks
db.usage.updateMany({ acting_for: "<sub>" }, { $set: { acting_for: null } })
db.tasks.updateMany({ acting_for: "<sub>" }, { $set: { acting_for: null } })

Records are written from the task documents when tasks finish (also again, when a poll is retried): a task that has not finished, or whose final poll is retried, gets a record with the user it holds. To erase a named user, clear acting_for in the tasks too, as above; the user was already passed on to the TES instances that get the identity of submitters (see Acting for users). Likewise, the records of a user who still has unfinished tasks come back when those tasks finish: delete the user's tasks first (see Task owners), or delete the records again later.

To delete records automatically some time after their tasks finished, add a TTL index on finished_at (e.g., after 400 days), in a config overlay, which replaces the indexes of the collection, so repeat the others:

db:
  dbs:
    taskStore:
      collections:
        usage:
          indexes:
            - keys:
                finished_at: 1
              options:
                expireAfterSeconds: 34560000
            - keys:
                user_id: 1
                finished_at: 1
            - keys:
                acting_for: 1
                finished_at: 1

MongoDB doesn't change the options of an existing index: drop the index finished_at_1 first (db.usage.dropIndex("finished_at_1")), then restart proTES, which creates the indexes of the config. Records whose task finished at an unknown time are deleted by when they were recorded.

Execution reports

To credit the infrastructures that ran tools (e.g., for the usage dashboard of ELIXIR Compute), export the records as execution reports, which hold no personal data. Configure the providers and the location first (see Execution reports), then get the reports of a time range as an admin, e.g., per month, and check that the request succeeded (--fail):

curl --fail -o reports-2026-11.json \
  -H "Authorization: Bearer <token>" \
  "http://localhost:8080/ga4gh/tes/v1/usage/reports?since=2026-11-01T00:00:00Z&until=2026-12-01T00:00:00Z"

400 Bad Request with max_records in detail means that more tasks finished in the range than one request may cover: request shorter ranges (e.g., per day), or raise custom.accounting.reports.max_records. The start of a range is included and its end is not, so consecutive ranges cover each task once. Hand the file over as the receiving service asks; the reports are of format version 0.0.2, and each of them validates against its JSON Schema (the version that the tests vendor, in tests/accounting/data). Deleting records (above) also removes their reports: export them first. Before handing reports over, check that the trusted image namespaces (custom.accounting.reports.images) hold only published tools, whose names can't name users.

Task provenance

Each new task has the provenance of its plugin pipeline in provenance of its document (FOCA's foca.plugins.ProvenanceStore; the fields are described in FOCA's documentation): the versions of FOCA and proTES, the request identifier, the pipeline (its source, e.g., default, and the hash of the resolved pipeline), the plugins that ran (by build hash), the hook calls with their outcomes and the paths they changed, the TES instances before and after routing, the client's choice of TES instances, the forwarding attempts (TES instance, outcome, reason, remote identifier, times) and the final reason, if no TES instance accepted the task. The record is stored with the task (after routing), and replaced, with the attempts, once a TES instance accepted the task (or may have, SYSTEM_ERROR). Records hold no IP addresses, tokens, header values or claims, and take at most 1 MiB. Only owners get them with GET /tasks/{id}/provenance (see Provenance), and tasks carry a summary in their tags (gateway.*, see Gateway tags). Tasks created by earlier versions have none. Records are deleted with the task. They add no personal data to the task besides the request identifier, as long as the plugins that ran add none: records hold the resolved pipeline with the parameters of each plugin (pipeline.resolved, also for pipelines chosen by clients) and what plugins annotate. Plugins must declare secret parameters as pydantic.SecretStr (shown as ********** in the records) and must not annotate personal data; check this when you review a plugin (see FOCA's documentation), and don't put secrets in parameters of presets or the default pipeline otherwise. Owners and admins get the records, with the parameters.

Shared parts are stored once, by hash (_id), in two more collections of the database of the tasks, and the records refer to them:

  • plugin_builds: the builds of the plugins that ran (plugin, package, version, entry point, digest of the installed files, and the image digest, if FOCA_IMAGE_DIGEST is set);
  • pipelines: the default and preset pipelines (resolved); pipelines chosen by clients stay in the records.

If they can't be written, the records keep them (builds, resolved) and have stored: false; creating the task doesn't fail. Neither collection is cleaned up: they get a document per plugin build (new ones with each image, if the image digest is set) and per pipeline only, and documents are small.

Requests whose pipeline run failed (e.g., tasks rejected by a plugin, or accepted by no TES instance) leave no task. With plugins.provenance.record_failed: true (off by default, so that no record of rejected input is kept; see Plugins), their records go to the collection failed_runs, with the time (failed_at) and the error (type, status, slug), keyed by the run's random identifier (run-<run ID>), with the request identifier in the field request_id (a generated one, unless server.request_id trusts clients' X-Request-ID). Clients can't replace records, but each rejected request adds one. Look up a request by request_id, and add an index on it if you do that often. Requests refused before the pipeline started (e.g., invalid tasks, loops, or invalid tags under gateway.) have no record, nor have tasks whose response a plugin failed: they are kept, and run at their TES instance.

A TTL index deletes the records of failed runs 30 days after they failed (FOCA's default; db section of config.yaml). To keep them for another time, change the index in place, and set its expireAfterSeconds in the config to the same value (else proTES refuses to start, as the configured index conflicts with the existing one), e.g., for 7 days, in the database of the tasks (use taskStore, or the one in MONGO_DBNAME):

db.runCommand({
  collMod: "failed_runs",
  index: { keyPattern: { failed_at: 1 }, expireAfterSeconds: 604800 },
})

To look up the provenance of a task, or recent failed runs (in the same database):

// provenance of a task, with its pipeline and plugin builds
const record = db.tasks.findOne({ "task.id": "<id>" }).provenance
db.pipelines.findOne({ _id: record.pipeline.resolved_hash })
db.plugin_builds.find({ _id: { $in: Object.keys(record.plugins) } })
// failed runs of the last day
db.failed_runs.find({ failed_at: { $gt: new Date(Date.now() - 864e5) } })

Plugin store

Plugins may keep small data across requests in FOCA's key-value store (ctx.store, e.g., caches and per-user counters; see FOCA's documentation). proTES itself stores nothing there. The entries are in the collection plugin_store of the app's first database in db.dbs, the database of the tasks (taskStore, or the one in MONGO_DBNAME), shared by all instances, with a namespace (ns) per plugin distribution and an expiry (expires_at): entries live at most max_ttl seconds (by default 30 days; see Plugins), and MongoDB removes expired entries about once a minute. Plugins whose store is turned off (enabled: false) keep their entries in the memory of each process instead, without size limit: give them a short max_ttl (e.g., an hour).

proTES creates the indexes of the collection on startup (a TTL index on expires_at, one on ns), so its database user needs the right to create indexes (createIndex, part of the role readWrite). If that fails, proTES starts anyway and logs a warning (an error, with the cause, for conflicting indexes, failed authentication or missing rights), and writes of plugins to the store fail until the indexes exist. On each start, proTES also cuts the expiry of stored entries to the current max_ttl; if that fails (logged), they keep their expiry until a later start succeeds. During a rolling update that lowers max_ttl, instances with the old setting still write entries with the old max_ttl: once all instances have the new setting, restart them once more (e.g., kubectl rollout restart deployment/<app> with the Helm chart), so that all entries expire within the new max_ttl.

What each plugin keeps there is listed in the plugin listing (data_stored, with the mode of its store, storage: shared in the database, local in the memory of each process, or off; see Choices of clients). Entries keyed by users are personal data, kept at most max_ttl. To remove the entries of a plugin distribution earlier (e.g., one that is no longer installed), delete them in the database of the tasks:

db.plugin_store.deleteMany({ ns: "<namespace>" })

Verifying images and charts

Images on Docker Hub (elixircloud/protes) of releases (X.Y.Z, from version tags) and of commits on dev (dev, sha-<commit>) are built by this repository's workflows on GitHub Actions, with an SBOM and the build provenance attached as attestations, a GitHub artifact attestation of their provenance, and a keyless Sigstore signature (images tagged by date, of earlier deployments, are not). To check that an image was built by the release workflow, run (with the GitHub CLI or cosign 3 or later, which reads the signatures in the Sigstore bundle format):

gh attestation verify oci://docker.io/elixircloud/protes:0.8.0 \
    --repo elixir-cloud-aai/protes \
    --signer-workflow elixir-cloud-aai/protes/.github/workflows/release.yml \
    --source-ref refs/tags/v0.8.0
cosign verify docker.io/elixircloud/protes:0.8.0 \
    --certificate-oidc-issuer https://token.actions.githubusercontent.com \
    --certificate-identity https://github.com/elixir-cloud-aai/protes/.github/workflows/release.yml@refs/tags/v0.8.0

These are the commands for release 0.8.0: replace it with the version to verify. --source-ref and the ref in --certificate-identity check that the workflow ran for the release tag, not for another branch. The workflow files were renamed after 0.3.0: releases after 0.3.0 are signed by release.yml instead of release.yaml.

The signatures and attestations name the repository as it was called when the workflow ran, and cosign compares the identity exactly, also its case. The repository's name changes from proTES to protes (GitHub ignores the case in URLs, so links of both forms work): releases up to 0.3.0 are signed as elixir-cloud-aai/proTES, releases after the rename as elixir-cloud-aai/protes (in --repo, --signer-workflow and --certificate-identity), for images and charts alike. The commands for images above and for charts below use the form of release 0.8.0.

Images of commits on dev (dev, sha-<commit>) are signed and attested by the CI workflow instead (by checks.yaml instead of ci.yml before the workflow files were renamed). These commands accept both forms of the repository's name and of the workflow file, for images built before and after the renames:

gh attestation verify oci://docker.io/elixircloud/protes:dev \
    --owner elixir-cloud-aai \
    --cert-identity-regex '^https://github\.com/elixir-cloud-aai/(proTES|protes)/\.github/workflows/(ci\.yml|checks\.yaml)@refs/heads/dev$' \
    --source-ref refs/heads/dev
cosign verify docker.io/elixircloud/protes:dev \
    --certificate-oidc-issuer https://token.actions.githubusercontent.com \
    --certificate-identity-regexp '^https://github\.com/elixir-cloud-aai/(proTES|protes)/\.github/workflows/(ci\.yml|checks\.yaml)@refs/heads/dev$'

To show an image's SBOM or provenance, run:

docker buildx imagetools inspect docker.io/elixircloud/protes:0.8.0 \
    --format '{{ json .SBOM }}'
docker buildx imagetools inspect docker.io/elixircloud/protes:0.8.0 \
    --format '{{ json .Provenance }}'

The Helm chart attached to a release (protes-0.8.0.tgz) has a GitHub artifact attestation of its provenance and a Sigstore bundle with its signature (protes-0.8.0.tgz.sigstore.json, attached too):

gh release download v0.8.0 --repo elixir-cloud-aai/protes \
    --pattern 'protes-0.8.0.tgz*'
gh attestation verify protes-0.8.0.tgz \
    --repo elixir-cloud-aai/protes \
    --signer-workflow elixir-cloud-aai/protes/.github/workflows/release.yml \
    --source-ref refs/tags/v0.8.0
cosign verify-blob protes-0.8.0.tgz \
    --bundle protes-0.8.0.tgz.sigstore.json \
    --certificate-oidc-issuer https://token.actions.githubusercontent.com \
    --certificate-identity https://github.com/elixir-cloud-aai/protes/.github/workflows/release.yml@refs/tags/v0.8.0

Images are scanned for known vulnerabilities with Trivy in CI and again before a release is published (both fail on fixable critical and high vulnerabilities), and the latest image weekly. The repository's code scanning alerts show the findings that have a fix, which the maintainers can act on; findings without a fix (often OS packages of the base image) appear there once a fix is released. The weekly scan also keeps a full report, those findings included, as a workflow artifact of each run. The published images (releases and dev) are the scanned ones: the workflows push each image by digest, untagged, scan exactly that digest, and only if the scan passes (no fixable critical or high vulnerabilities, except accepted ones) sign and tag it.