Skip to content
This repository was archived by the owner on Feb 16, 2019. It is now read-only.

RouteRule incorrectly handles routing for http-only backend #229

@Dadabhvai-Kashyap

Description

@Dadabhvai-Kashyap

Route rules not working for me
Is this a BUG or FEATURE REQUEST?:

Did you review https://istio.io/help/ and existing issues to identify if this is already solved or being worked on?:
yes
Bug:
Y/N

What Version of Istio and Kubernetes are you using, where did you get Istio from, Installation details

istioctl 0.5.1
kubectl 1.7.6

Is Istio Auth enabled or not ?
Did you install istio.yaml, istio-auth.yaml....
istio.yaml
What happened:
Route rules rewrites hosts, but upgrades connections to https and fails. I do curl service1.com and expect redirection to http://service2.com, but instead i'am being redirected to https:// and fail.

curl -L -I http://service1.com
HTTP/1.1 302 Found
location: https://service2.com/
server: envoy
content-length: 0
x-envoy-upstream-service-time: 148
date: Mon, 26 Feb 2018 12:05:50 GMT

curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to service2.com:443
What you expected to happen:
I expect to go to http://service1.com and istio will rewrite me to http://service2.com
How to reproduce it:
curl -LI http://service.com

apiVersion: config.istio.io/v1alpha2
kind: RouteRule
metadata:
 name: rewrite-rule
spec:
  destination:
    service: service1.com
  match:
    request:
      headers:
        authority: service1.com
  rewrite:
    authority: service2.com 

Feature Request:
Y/N

Describe the feature:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions