[Bug] Subscriptions Created via the Gateway Controller Management API Are Revoked After Gateway Redeployment
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Start by reproducing the steps: create a subscription through POST /api/management/v1/subscriptions, confirm it appears in GET /rest-apis/subscriptions, then restart the Gateway Controller. The issue names no source files, so you will need to find where subscriptions are stored and whether that store is reloaded on startup. Done when subscriptions created through the management API still return 200 OK after a restart and GET /rest-apis/subscriptions lists them.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Please select the area the issue is related to
Gateway
Please select the aspect the issue is related to
Aspect/API (API backends, definitions, contracts, interfaces, OpenAPI)
Description
When testing application-based subscriptions through the Gateway Controller Management REST API, we observed that the created subscriptions are lost whenever the Gateway cluster is redeployed.
For example, we create a subscription using the following API:
The subscription is successfully created and available while the Gateway cluster is running. However, after redeploying the Gateway cluster, the previously created subscriptions are no longer available.
Steps to Reproduce
- Start a Gateway connected to the Platform API with the API Portal enabled.
- Deploy a sample API.
- Create an application-based subscription using the Gateway Controller Management REST API:
curl --location 'https://localhost:9090/api/management/v1/subscriptions' \
--header 'Authorization: Basic base64_admin_pass' \
--header 'Content-Type: application/json' \
--data '{
"apiId": "",
"subscriptionPlanId": "",
"subscriptionToken": "",
"applicationId": ""
}'
-
Verify that:
GET /rest-apis/subscriptionsreturns the newly created subscription.- Requests to the subscribed API are successful and return HTTP
200 OK.
-
Restart the Gateway Controller
-
After the restart, verify that:
- Requests to the previously subscribed API return HTTP
403 Forbidden. GET /rest-apis/subscriptionsreturns zero subscriptions.
Severity Level of the Issue
Severity/Critical (Core functionality is broken but there is a workaround. Need urgent attention)
Environment Details (with versions)
No response
- Ngôn ngữ chính
- Go
- Star
- 85
- Fork
- 142
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 255
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của wso2/api-platform
-
Area/Policies Aspect/API Severity/Major Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
wso2/api-platform#4468 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area/Policies Aspect/API Severity/Major Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
wso2/api-platform#4465 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Invalid [api_portal.http_client.tls] value reports an error naming server.httpsCó thể đã có người làm @Maheesh09 đã nhận 1 ngày trước. Đang mởArea/DeveloperPortal Aspect/Configuration Severity/Minor Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wso2/api-platform#4437 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area/DeveloperPortal Aspect/UI Severity/Minor Type/Bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
wso2/api-platform#4369 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: host-rewrite policy documentation lists fewer allowed host characters than the policy acceptsĐang mởArea/Policies Aspect/Other Severity/Trivial Type/Bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
wso2/api-platform#4355 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của wso2/api-platform
Issue tương tự
-
[inputs.internal] README lists go_version tag on internal_gather instead of internal_agentCó thể đã có người làm @cvas22 đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
influxdata/telegraf#20264 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Standalone migration breaks existing Ingress routes using the envoy-http Service port nameĐang mởaccepted bug wg/enterprise-environment
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vllm-project/semantic-router#7483 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
stacklok/toolhive-catalog#2076 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
vulncheck or vulndb
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
golang/go#83428 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
gke-labs/kube-agents#7441 ·
Maintainer thường phản hồi trong vòng 1 ngày