Skip to content

Add VCS name to project lock resource name to avoid naming conflicts #1678

Open
@motatoes

Description

@motatoes

Currently our lock resource names (PR locks) are of the format diggerhq/demo-opentofu#dev, so its repo org, repo name and project name. However as we expand to multiple CI systems this will cause conflicts of names, therefore I propose to add the vCS name to the resource name to avoid this naming conflicts:

github#diggerhq/demo-opentofu#dev
gitlab#diggerdev/demo-opentofu#prod

In that way we guarantee uniqueness in digger cloud

This is more a concern for the cloud offering rather than the self-hosted instances or backendless modes, however applying globally will safeguard against any future conflicts.

If we change the name then existing locks will be invalidated. In order to make it a graceful move we can only apply this change to the digger_locks database table (other backend cloud-based locks such as dynamoDB will remain the same). This then makes it a graceful change and therefore no lock invalidation will occur

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions