Skip to content

feat: do not store attestation in DB #2126

@migmartri

Description

@migmartri

Currently, attestations are stored both in DB and in the CAS. This causes the DB usage to grow, especially now that we also store policy evaluations, etc in them.

One solution would be to

a) stop storing the attestation in the DB
b) update the biz layer so nothing changes from the API POV, just an inevitable response slowdown for which we could
c) Add a cache layer, i.e something simple in memory like, Nats KV with TTL

In the future we might want to not to couple the wf run describe API call to retrieving attestation too, and have another API endpoint/flag to do so, that way the API call can be fast regardless of cache MISS

cc/ @jiparis @javirln

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions