odo icon indicating copy to clipboard operation
odo copied to clipboard

URL support for https

Open greg-pendlebury opened this issue 7 years ago • 24 comments

[kind/Feature]

Which functionality do you think we should add?

I would like to be able to generate https URLs using the URL command: odo url create local-greg --port 8443 --tls=edge

Perhaps a new parameter like --tls=edge would result in adding this to the OCP route:

  tls:
    insecureEdgeTerminationPolicy: Redirect
    termination: edge

This is the simple use case we are looking for, but no doubt there are others:

  • --tls=none (default)
  • --tls=passthrough
  • --tls=reencrypt

I have no personal experience with the last two... perhaps that are too complicated to support, but edge at least seems trivial.

Why is this needed?

Our microservice security layer and keycloak can be sensitive to users not using https for traffic/logins. At the moment I am forced to manually modify the TLS config for the route inside the OCP console after performing odo push.

greg-pendlebury avatar Sep 27 '19 00:09 greg-pendlebury

/kind feature /priority medium

kadel avatar Sep 27 '19 06:09 kadel

to create a secured route other then these two parameters. We need to have 3 more values present in the route struct

 key: |-                      
      -----BEGIN PRIVATE KEY-----
      [...]
      -----END PRIVATE KEY-----
    certificate: |-              
      -----BEGIN CERTIFICATE-----
      [...]
      -----END CERTIFICATE-----
    caCertificate: |-            
      -----BEGIN CERTIFICATE-----
      [...]
      -----END CERTIFICATE-----

The key, certificate and caCertificate.

girishramnani avatar Jan 07 '20 06:01 girishramnani

We can provide these certificates and key as flags e.g. --key. And these flags will be location to a file which odo will read and populate the respective attribute

girishramnani avatar Jan 08 '20 08:01 girishramnani

Just in case there is concern over complexity here, I think it is worth mentioning that if the cluster is already installed to correctly manage SSL on your behalf (as ours is... assuming we stay within the scope of the SSL domains) then we don't provide any of the certificate information from the client side. Cluster admins have already done it all.

So my feedback was truly about the extremely simple use case where three lines fixes everything. I acknowledge a complete and all encompassing solution would be more complicated.

greg-pendlebury avatar Jan 13 '20 23:01 greg-pendlebury

So my feedback was truly about the extremely simple use case where three lines fixes everything.

completely understandable but we need to consider all possible scenarios including the ones where the cluster doesn't have already installed SSL and even allowing the insecureEdgeTerminationPolicy to be set to something other then Redirect ( Allow or None) :slightly_smiling_face:

girishramnani avatar Jan 14 '20 07:01 girishramnani

@kadel @girishramnani We can have flags for passing the values of insecureEdgeTerminationPolicy, termination so that they can set to something else according to the user's requirement

mik-dass avatar Jan 27 '20 09:01 mik-dass

we need to consider kuberenetes here as well.

girishramnani avatar Jan 27 '20 14:01 girishramnani

@kadel @girishramnani We can start small and just have --secure flag which will create a HTTPs supported route with default configurations. Later if there is a need, we can add the ability for the user to customize the configurations of the route.

mik-dass avatar Jan 30 '20 09:01 mik-dass

+1 on this. Was just about to open issue on this and found it. With OCP coming across the simple case where just need to passthrough flag set, however this can't be done on the odo create url command line.

In addition would like this available in the devfile.yaml see open issue in devfile on eclipse che... https://github.com/eclipse/che/issues/14622#issuecomment-615110628

vandepol avatar Apr 27 '20 13:04 vandepol

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Jul 26 '20 13:07 openshift-bot

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar Aug 25 '20 15:08 openshift-bot

Interested in this. Not sure if I have authority to do this but am going to try :)

/remove-lifecycle rotten

scottkurz avatar Sep 10 '20 18:09 scottkurz

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Feb 04 '21 01:02 openshift-bot

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar Mar 06 '21 01:03 openshift-bot

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

openshift-bot avatar Apr 05 '21 06:04 openshift-bot

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-ci-robot avatar Apr 05 '21 06:04 openshift-ci-robot

I would love to see this added as well. Creating routes with tls options is a standard workflow in my team but currently to configure passthrough we have to go and modify the route after that fact. Reverting to oc in the meantime makes the process easier until odo supports this.

/reopen

kevprice83 avatar May 06 '21 14:05 kevprice83

@kevprice83: Reopened this issue.

In response to this:

I would love to see this added as well. Creating routes with tls options is a standard workflow in my team but currently to configure passthrough we have to go and modify the route after that fact. Reverting to oc in the meantime makes the process easier until odo supports this.

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-ci[bot] avatar May 06 '21 15:05 openshift-ci[bot]

Two concerns w.r.t taking this further:

  • it might not be doable for ingress (kubernetes) even if it can be done for routes (OCP)
  • this might need support on devfile schema first before adding to odo.

dharmit avatar May 11 '21 11:05 dharmit

  • it might not be doable for ingress (kubernetes) even if it can be done for routes (OCP)

Why wouldn't this be doable for Kubernetes?

  • this might need support on devfile schema first before adding to odo.

What would be the extra information that needs to be defined in Devfile?

kadel avatar May 11 '21 11:05 kadel