[Bug]: Key Manager deletion is blocked when linked to applications by adding client ID
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 71
- Forks
- 111
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 110
Description
Please select the area the issue is related to
Developer Portal
Please select the aspect the issue is related to
Aspect/API (API backends, definitions, contracts, interfaces, OpenAPI)
Description
The warning message when trying to delete key manager indicates that you can delete while the KM is linked to applications. (warning that those will also get deleted in the process).
However, this action gets blocked
api-portal-1 | [2026-08-05 16:38:22][error][task_queues:270] Error deleting key manager {"error":{"code":"SQLITE_CONSTRAINT_FOREIGNKEY"}}
api-portal-1 | [2026-08-05 16:38:22][error][task_queues:277] Error while deleting key manager {"error":{"code":"SQLITE_CONSTRAINT_FOREIGNKEY"}}
either we should fix to delete the client id links or fix the warning message.
Steps to Reproduce
as above
Severity Level of the Issue
Severity/Major (Important functionality is broken. Should be prioritized. Doesn't need immediate attention)
Environment Details (with versions)
API Portal 1.0.0 RC3 pack
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing key manager deletion in the API Portal using the SQLite setup and trace the deletion entry point through the client ID link handling. Confirm whether linked application records are removed or the warning is corrected, then verify that the chosen behavior completes without a SQLITE_CONSTRAINT_FOREIGNKEY error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, sqlite
- Domain
- api, backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100