Description of problem: ----------------------- OpenShift does not allow someone to alias a nested domain (shared root or parent domain). By that I mean aliasing for example myapp-sales.oapps.corp.com to mysales.oapps.corp.com Version: -------- OpenShift Enterprise 2.0 How reproducible: ----------------- $rhc apps myapp @ http://myapp-sales.oapps.corp.com/ (uid: blah) ... ... removed ... ... $ rhc alias add myapp mysales.oapps.corp.com The specified alias is not allowed: 'mysales.oapps.corp.com' $ Actual results: --------------- The error: The specified alias is not allowed: 'mysales.oapps.corp.com' Expected results: ------------------ Would like to add the alias mysales.oapps.corp.com to myapp-sales.oapps.corp.com
Mind you, I haven't actually looked at the code yet, but my guess would be this is a pretty simple fix. My thought was to introduce this as a configurable option, defaulting to the existing behavior (disallow subdomain aliases). Any opposing view - make it non-configurable or default to allow?
Proposed fix is at https://github.com/openshift/origin-server/pull/4401 Need someone to review the approach; not sure if I should do something to keep the user from possibly creating an alias that conflicts with another app's name; e.g. someone else with app "bogus-app.oapps.corp.com" could create an alias for it called "myapp-sales.oapps.corp.com" and if they happened to land on the same node host, I'm not sure which would win in the front end web proxy. I'm not sure if customers would care or not. Anyway the fix is there.
verified with puddlge-2014-01-30 mynodejsapp1 @ http://mynodejsapp1-demo.ose203.example.com/ (uuid: 52eb49663eefa979ea000001) rhc alias add mynodejsapp1 test.ose203.example.com Alias 'test.ose203.example.com' has been added.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0209.html