Uploaded image for project: 'Portal'
  1. Portal
  2. PORTAL-806

PORTAL doesn't work correctly when using default k8s ingress

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Frankfurt Release
    • Frankfurt Release
    • None

      If Portal is used with an k8s ingress e.g. config below, then SDC for example will not launch correctly.

      The problem is that Portal adds cookies with underscores "_" e.g.  USER_ID=cs0008 

      These are stripped out by default by the nginx ingress.

      This can be overriden by setting 

      enable-underscores-in-headers: "true"

      in the ingress 

      example of now to change

      kubectl -n  ingress-nginx get cm nginx-configuration -o yaml > nginx-CM.yaml

      add the 2 lines below to  nginx-CM.yaml

      data:
        enable-underscores-in-headers: "true"

      kubectl replace -f  ./nginx.yaml

       

      sample INGRESS is  attached

      I think this either needs to be documented on how to set up an ingress for ONAP or I think the usage of underscores should be removed.

       

       

       

       

            afenner afenner
            afenner afenner
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: