Commit Graph

27 Commits (fdb2dbf163a02aff5e574ce29a8ba767dfce1f7b)

Author SHA1 Message Date
Oleksandr Andriienko 71c2ea50a6
feat: Update keycloak from 6.0.1 to 15. (#86)
* Update keycloak from 6.0.1 to 15.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-09-10 10:55:20 +03:00
Anatolii Bazko 537c8a92aa
Allow to use internal cluster service hostnames (#18707)
* Allow to use internal cluster service hostnames

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-01-04 09:48:11 +02:00
Mykola Morhun 7061f06ab1
Import all certificates from propagated bundle (#18504)
Import all certificates from propagated bundle

Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
2020-12-11 09:21:18 +02:00
Mykola Morhun 75889e8c33
Propagate CA certs bundle on all infrastructures (#18377)
Implement CA bundle propagation on Kubernetes infrastructures family

Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
2020-11-27 15:01:59 +02:00
Anatolii Bazko 2dbbe94384
Add registerWith* properties for register template (#17893)
* Add registerWith* properties for register template

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2020-09-17 12:54:31 +03:00
Anatolii Bazko 098bf021bd
Adds update profile form template with validation of username to be k8s DNS compatible (#17780)
Adds update profile form template with validation of username to be k8s DNS compatible:
Adds a new theme che-username-readonly based on che which put username filed to readonly. It doesn't allow to be accidentally autocompleted.

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2020-09-08 16:39:43 +03:00
Mykhailo Kuznietsov 5dda0e5c7c
Enable email event listener in Keycloak (#14064)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
2019-07-30 12:51:44 +03:00
Mykhailo Kuznietsov 0134345849
Fix Keycloak email template (#14038) 2019-07-30 12:50:51 +03:00
Masaki Muranaka 3d8ea83525 Fix to use DB_VENDOR.
DB_VENDOR is parsed in `docker-entrypoint.sh`.
`standalone.sh` will be called the tail of `docker-entrypoint.sh.`

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2019-07-24 12:21:48 +09:00
Masaki Muranaka ccda8e309f Run as uid:gid == 1000:1000 on K8s environment.
This patch is based on the discussion at (eclipse#13798).

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2019-07-15 17:07:39 +09:00
Florent Benoit a50ad093f2 Remove Docker CLI and images parts of the CLI
Fix #13649
move init files used by keycloak and postgres to their folders

Change-Id: I66dbb2d6df1f3c062e981a6a513c36be8aa1d39a
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2019-07-01 17:00:00 +03:00
David Festal c9bd5fd8e8
Update Openshift v4 provider download URL (#13567)
Signed-off-by: David Festal <dfestal@redhat.com>
2019-06-18 18:27:36 +02:00
David Festal 93a492664c
Operator-related fix and openshift v4 support (#13554)
* Restore initial image user
* Accomodate with the entrypoint move
* Add the new Openshift-v4 provider: This is provisional,
until the new provider is integrated into a future Keycloak release.

Signed-off-by: David Festal <dfestal@redhat.com>
2019-06-17 17:48:29 +02:00
Sergii Kabashniuk 034e4031f1
Used latest keycloak 6.0.1 (#13429)
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-05-29 10:13:49 +03:00
Sergii Leshchenko 331a63cd06 Rename OPENSHIFT_IDENTITY_PROVIDER_CERTIFICATE to CHE_SELF__SIGNED__CERT 2018-12-05 13:18:06 +02:00
Vitaliy Gulyy 21318aeec8
build.sh become working on Ubuntu / Linux Mint (#12004)
* Use bash instead sh

* Revert .gitignore
2018-11-21 12:37:27 +02:00
Mykhailo Kuznietsov dcb00c53d0
Fix remaining files with licenses (#10746) 2018-08-21 10:25:45 +03:00
Eugene Ivantsov eceb96a146 Use CHE_HOST if exported, else calculate 2018-08-16 12:38:37 +03:00
Eugene Ivantsov 78e1e62f1d Fix redirect URIs and webOrigins 2018-08-16 12:19:25 +03:00
Sergey Kuperman 124a8f18ef Make host calculation more short and concise for che master
Signed-off-by: Sergey Kuperman <sergey.kuperman@sap.com>
2018-08-06 10:57:59 +03:00
Mykhailo Kuznietsov 80f857bbc6
Update Keycloak to 3.4.3.Final version (#10165) 2018-07-02 09:49:54 +03:00
David Festal e0890235fa
Allow creating OpenShift objects under the current user account on OCP (#9577)
* Support identity provider token retrieval in both JSON or URL formats.

That's required because some identity providers (such a `openshift-v3`)
correctly return the token information in JSON, as expected. So
switching to the url-based syntax should only used when the returned
json is invalid.

Signed-off-by: David Festal <dfestal@redhat.com>

* Introduce an `OpenShiftClientConfigFactory` to allow customizing the OpenShift config returned according to the current context (workspace ID, current user)

Signed-off-by: David Festal <dfestal@redhat.com>

* Openshift Infra + Multi-user => allow using OpenShift identity provider to connect to openshift with the OS oauth token of the current Che user.

This introduces a new property:

`che.infra.openshift.oauth_identity_provider`

Signed-off-by: David Festal <dfestal@redhat.com>

* Notify the user when a workspace cannot be started from the nav bar.

Signed-off-by: David Festal <dfestal@redhat.com>

* Add the ability to install the Openshift certificate into Keycloak

Signed-off-by: David Festal <dfestal@redhat.com>

* Add a yaml file to provide the openshift certificate as a secret,

in case it has to be installed into the dedicated Keycloak server.

Then the commands to install Che multiuser on Minishift with this
certificate are:

```
oc new-project che

oc process -f multi/openshift-certificate-secret.yaml -p
CERTIFICATE="$(minishift ssh docker exec origin /bin/cat
./openshift.local.config/master/ca.crt)" | oc apply -f -; \
oc new-app -f multi/postgres-template.yaml; \
oc new-app -f multi/keycloak-template.yaml -p ROUTING_SUFFIX=$(minishift
ip).nip.io; \
oc apply -f pvc/che-server-pvc.yaml; \
oc new-app -f che-server-template.yaml -p ROUTING_SUFFIX=$(minishift
ip).nip.io -p CHE_MULTIUSER=true -p
CHE_INFRA_OPENSHIFT_OAUTH__IDENTITY__PROVIDER=openshift-v3; \
oc set volume dc/che --add -m /data --name=che-data-volume
--claim-name=che-data-volume
```

Of course it's still needed to register the `openshift-v3` identity
provider in the Keycloak server, as well as, add the corresponding
`OAuthClient` object in Minihshift.

Signed-off-by: David Festal <dfestal@redhat.com>
2018-05-28 11:39:44 +02:00
Eugene Ivantsov b4c9fa91ea
Make Keycloak Admin configurable (#9490)
* Make Keycloak Admin configurable

* Make Keycloak Admin configurable

* Fix typos
2018-04-19 14:09:39 +03:00
Eugene Ivantsov fa046bd6e3
Use templates only to deploy Che to OpenShift (#9190)
* Use templates only to deploy Che to OpenShift

* Avoid breaking existing scripts

* Avoid breaking existing scripts

* Fixes

* Cleanup

* Cleanup

* Fixup

* New line and typos

* New line and typos

* Update dc/che. Env variables

* Remove creationtimestamp

* Template cleanup. Update README

* Fix DB URL env

* Add missing keycloak param

* Changes to ocp.sh to use new templates. Fix Keycloak template

* Env support

* Update server yaml. Update ocp.sh

* Configure CHE_IMAGE and CHE_TAG

* Add recycler

* Revern recycler sa

* Using credentials and creating ws in separate namespaces

* Use custom Keycloak image

* Use custom Keycloak image

* Remove use of credentials
2018-04-17 14:29:59 +03:00
Roman Iuvshyn 55a2588d56
eliminate kc-util image (#8896)
* eliminate kc-util image
2018-02-23 15:44:47 +02:00
Roman Iuvshyn bc048a8010
fix new images build outside it's directory (#8893)
* fix new images build outside it's directory
2018-02-23 14:46:14 +02:00
Eugene Ivantsov 06df5be97d
Replace s2i based deployment approach with pure deployments (#8819)
* Experimenting with deployment config based approach to Che multi user on OCP

* Service pod

* Remove s2i

* Remove s2i

* EOF

* Cleanup

* Cleanup

* Cleanup

* Cleanup

* Make Keycloak util image configurable

* Update webdriver.sh
2018-02-23 13:47:49 +02:00