cloudfoundry / cloudfoundry/cloud_controller_ng

Allow host_and_domain_taken_different_space if "path" is different

Open
#2,170 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

unscheduled
Dominant language
Ruby
Stars
207
Forks
373
Avg merge
2d 12h
Merged PRs (30d)
56

Description

Issue

We have multiple spaces for different applications in our cloud foundry ORG, we'd like to setup a common route having a different path in each space. The ultimate goal is to avoid using a reverse proxy to provide a common subdomain across all applications no matter which space they are associated with.

In SPACE A
common.app.cf.com/app1

In SPACE B
common.app.cf.com/app2

In SPACE C
common.app.cf.com/app3

Steps to Reproduce

cf7 map-route APPNAME DOMAIN --hostname COMMONHOST --path app{1,2,3}

Expected result

I'd like to be able to reuse the same route (w/ path difference) across spaces in at least the same DOMAIN.

Current result

domain_id and host host_and_domain_taken_different_space

Possible Fix

Remove check in https://github.com/cloudfoundry/cloud_controller_ng/blob/main/spec/unit/models/runtime/route_spec.rb

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 with spec/unit/models/runtime/route_spec.rb and trace the route mapping behavior exercised by the reported cf7 map-route command. Add coverage for reusing one host and domain across spaces when the paths differ, and verify that the expected conflict still occurs for routes that do not meet that condition.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.