Skip to content

ocifilter: Immutable allows clients to see tags changing #5

@rogpeppe

Description

@rogpeppe

Currently ocifilter.Immutable is flawed because there's a potential window where a client could see a tag changing underfoot.
We could fix that by passing in an interface that allows access to some kind of distributed lock. When pushing a tag, we would obtain access to the lock before pushing the tag, thus closing the window. Clearly it would be only an advisory lock because other clients with write access could ignore it, but it still might be enough in scenarios where access is strictly via a known proxy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeA backwardly-incompatible change to the Go API.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions