wso2 / wso2/api-platform

[Task]: Remove direct assess to Envoy Dynamic Metadata from Policies

Open
#1,765 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area/Gateway Aspect/API Type/Task
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

Area/Gateway (Routing, API deployment in gateway etc.)

Please select the aspect the issue is related to

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

Description

$subject

Ex:

type ImmediateResponse struct {
	StatusCode            int
	Headers               map[string]string
	Body                  []byte
	AnalyticsMetadata     map[string]any            // Custom analytics metadata
	DynamicMetadata       map[string]map[string]any // Dynamic metadata by namespace <---------- HERE
	AnalyticsHeaderFilter DropHeaderAction          // Headers to exclude from analytics
}
type UpstreamRequestHeaderModifications struct {
	HeadersToSet    map[string]string // overwrite header (last write wins)
	HeadersToRemove []string          // remove by name (case-insensitive)

	// Routing mutations — applied before the request is forwarded to upstream.
	// These are valid at the header phase because routing decisions do not require
	// the request body to be available.
	UpstreamName            *string             // route to a named upstream definition (nil = no change)
	Path                    *string             // rewrite the request path (nil = no change)
	Host                    *string             // rewrite the :authority header (nil = no change)
	Method                  *string             // rewrite the request method (nil = no change)
	QueryParametersToAdd    map[string][]string // add or replace query parameters
	QueryParametersToRemove []string            // remove query parameters by name

	AnalyticsMetadata     map[string]any            // custom analytics metadata
	DynamicMetadata       map[string]map[string]any // dynamic metadata by namespace <---------- HERE
	AnalyticsHeaderFilter DropHeaderAction          // headers to exclude from analytics
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named, and the description still contains the placeholder "$subject". First locate the policy and gateway API definitions exposing DynamicMetadata, then confirm the intended replacement or removal behavior with maintainers; done means policies no longer have direct access to Envoy Dynamic Metadata.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.