Skip to content

[Bug]: API Key policy removal not synced after re-enabling deployment sync #2475

Description

@Thushani-Jayasekera

Please select the area the issue is related to

Area/Management (Management API or Management Portal UI)

Please select the aspect the issue is related to

Aspect/API (API backends, definitions, contracts, interfaces, OpenAPI)

Description

$subject

  1. deploy an LLM Proxy with API Key auth policy with deployment_sync_enabled to true.
  2. docker-compose down gateway and set deployment_sync_enabled to false and restart gateway
  3. Remove API Key auth policy and deploy API. There should not be any change reflected in UI side
  4. docker-compose down gateway and set deployment_sync_enabled to true and restart gateway
  5. Now we expect the security tab to display as no auth
Image

However, it still shows as API Key auth is enabled.
Based on the rest API call response, the policy is properly removed from CP side. However, security section has not been updated properly.

    "security": {
        "apiKey": {
            "enabled": true,
            "in": "header",
            "key": "X-API-Key"
        },
        "enabled": true
    },

Steps to Reproduce

as above

Severity Level of the Issue

Severity/Blocker (Core functionality is broken and consumer is blocked. Need immediate attention)

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

Labels

Area/ManagementAny issues related to Management API or Management Portal UIAspect/APIAPI definitions, contracts, OpenAPI, interfacesSeverity/BlockerType/Bug

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions