Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement autodetetion for self-signed certificate flag #301

Merged
merged 9 commits into from
Jun 15, 2020
Merged

Conversation

mmorhun
Copy link
Contributor

@mmorhun mmorhun commented Jun 4, 2020

Signed-off-by: Mykola Morhun mmorhun@redhat.com

What this PR does

Deprecates selfSignedCert option. CR value is present, but actually has no effect.

In case of Kubernetes, self-signed-certificate secret is checked for presence. If it exists, then it will be propagated to Che components. Also, if no secrets are precreated, they will be generated and treated as self-signed.

In case of Openshift, router certificate is examined for self-signed certificate presence. If so, then self-signed-certificate secret will be created and propagated to Che trust store. Otherwise, it is considered that commonly trusted certificate is used.

Related issues:

eclipse-che/che#16764

Tests

Tested on:

  • Openshift wih self-signed-certificate
  • Openshift wiht commonly trusted certificate
  • Minikube
  • CRC
  • Minishift (requires manual secret creation as Che docs says).

@mmorhun mmorhun self-assigned this Jun 4, 2020
@tolusha tolusha mentioned this pull request Jun 4, 2020
34 tasks
@mmorhun mmorhun changed the title Implement autodecetion for self-signed certificate flag Implement autodetetion for self-signed certificate flag Jun 4, 2020
README.md Outdated Show resolved Hide resolved
@che-bot
Copy link
Contributor

che-bot commented Jun 4, 2020

Latest version of Eclipse installed and tested successfully on minikube.

required when activating the `tlsSupport` field on demo OpenShift
clusters that have not been setup with a valid certificate for
the routes. This is disabled by default.
description: Obsolete. The value of this flag is ignored. Che operator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obsolete - Deprecated

Copy link
Contributor

@tolusha tolusha Jun 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make changes in che_types and update olm files

Copy link
Contributor

@tolusha tolusha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done

return nil, err
}

for i := range peerCertificates {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can avoid using index of element and simple get element from range: for _, peerCertificate := range peerCertificates {

@che-bot
Copy link
Contributor

che-bot commented Jun 5, 2020

Latest version of Eclipse installed and tested successfully on minikube.

2 similar comments
@che-bot
Copy link
Contributor

che-bot commented Jun 5, 2020

Latest version of Eclipse installed and tested successfully on minikube.

@che-bot
Copy link
Contributor

che-bot commented Jun 5, 2020

Latest version of Eclipse installed and tested successfully on minikube.

@nickboldt
Copy link
Contributor

will this fix be backported to the 7.14.x branch? Seems like a great UX improvement for CRW 2.2 too

@che-bot
Copy link
Contributor

che-bot commented Jun 9, 2020

Latest version of Eclipse installed and tested successfully on minikube.

Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
@che-bot
Copy link
Contributor

che-bot commented Jun 15, 2020

Latest version of Eclipse installed and tested successfully on minikube.

@mmorhun
Copy link
Contributor Author

mmorhun commented Jun 15, 2020

Rebased and updated OLM files

@mmorhun mmorhun merged commit 912fd52 into master Jun 15, 2020
@mmorhun mmorhun deleted the che-16764-2 branch June 15, 2020 08:01
mmorhun added a commit that referenced this pull request Jun 16, 2020
Implement autodecetion for self-signed certificate flag

Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants