spring-cloud / spring-cloud/spring-cloud-gateway

Add a mechanism to post process Routes

Open
#2,850 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
4.9k
Forks
3.5k
Avg merge
20h 57m
Merged PRs (30d)
8

Description

There has been a need to alter routes programmatically. The current way is hackish by either messing with properties before loading to using GlobalFilters. It would be nice to have an easy way to do this similar to framework's BeanPostProcessor.

See this PR for one workaround https://github.com/spring-cloud/spring-cloud-gateway/pull/2848

#2169 is a prerequisite so routes don't change after accepting requests.

Contributor guide

Open the contributing guide

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

Start by reading the workaround in PR #2848 and the prerequisite described in issue #2169, then inspect how routes are loaded and how GlobalFilters currently affect them. Done means providing a supported mechanism to post-process routes programmatically without changing routes after requests are accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.