-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
SubscripitionsIssue related with Subscription elementIssue related with Subscription elementbugSomething isn't workingSomething isn't workingotoroshipriority: highserver-sideIssue related with Daikoku Server sideIssue related with Daikoku Server sidesize/M
Milestone
Description
Description
When deleting an API that participates in an ApiKey aggregation as a child extension, the extension (authorized entity) is correctly removed from the API key in Otoroshi, but Daikoku is not updated at all — the subscription remains as-is, still referencing the deleted API.
When the parent API is deleted, the extension is correctly cleaned up on both sides.
Steps to reproduce
- Set up an Aggregation with a parent API and one or more child API extensions
- Delete the child API
- Check the subscription state in Daikoku and the API key state in Otoroshi
Expected behavior
Deleting a child API should remove its extension from the subscription in Daikoku and from the API key in Otoroshi.
Actual behavior
| Deleted API role | Subscription updated in Daikoku? | Extension removed in Otoroshi? |
|---|---|---|
| Parent | ✅ Yes | ✅ Yes |
| Child | ❌ No — subscription unchanged | ✅ Yes |
The deletion logic only handles the parent case. For a child, the Otoroshi side is correctly processed but the Daikoku subscription is left untouched, creating a desync where Daikoku still references an extension that no longer exists in Otoroshi.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
SubscripitionsIssue related with Subscription elementIssue related with Subscription elementbugSomething isn't workingSomething isn't workingotoroshipriority: highserver-sideIssue related with Daikoku Server sideIssue related with Daikoku Server sidesize/M