Skip to content

It is not possible to delete a policy that was not synced #267

@RaghavSood

Description

@RaghavSood

Presently, if a policy has not synced to the plugin server, it is not possible to delete it

Verifier logs:

time="2025-07-19T21:04:41Z" level=error msg="failed to delete plugin policy" error="failed to sync policy deletion with plugin server: fail to delete policy on verifier server, err: DELETE https://plugin.vultisigplugin.app/payroll/plugin/policy/6c3f497e-8c96-4c5b-b1d7-d0409f24a8bf giving up after 4 attempt(s)"

Plugin logs:

Jul 19 21:05:05 beta-plugin-server payroll-server[948211]: time="2025-07-19T21:05:05Z" level=error msg="Failed to get plugin policy" error="failed to get policy: no rows in result set" policy_id=9596a440-4fac-4c8c-b315-63c1c3bdf34b
Jul 19 21:05:05 beta-plugin-server payroll-server[948211]: {"time":"2025-07-19T21:05:05.586937516Z","id":"","remote_ip":"45.32.102.109","host":"plugin.vultisigplugin.app","method":"DELETE","uri":"/plugin/policy/9596a440-4fac-4c8c-b315-63c1c3bdf34b","user_agent":"Go-http-client/2.0","status":500,"error":"","latency":1391244,"latency_human":"1.391244ms","bytes_in":148,"bytes_out":35}

If a plugin hasn't received a policy, we should be able to delete it just on verifier instead of having the API fail

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions