syndesisio / syndesis-openshift-templates

OpenShift Templates for Syndesis
7 stars 18 forks source link

SSL certificate error in dev templates #20

Closed jludvice closed 7 years ago

jludvice commented 7 years ago

Starting ipaas from redhat-ipaas-dev-single-tenant.yml template, there is issue with ssl certificate. Log of github-proxy container shows following error when connecting to keycloak:

2017/03/20 11:15:58 Get https://ipaas-dev.10.40.3.127.nip.io/auth/realms/ipaas/.well-known/openid-configuration: x509: certificate is valid for *.10.40.3.127.xip.io, 10.40.3.127.xip.io, not ipaas-dev.10.40.3.127.nip.io
jludvice commented 7 years ago
#!/bin/env bash

MY_IP=`ip route get 8.8.8.8 | head -1 | cut -d' ' -f8`
echo "my ip is ${MY_IP} - using it for oc cluster up"

oc delete project ipaas-single-tenant || true

oc new-project ipaas-single-tenant

# oauth
oc create -f https://raw.githubusercontent.com/redhat-ipaas/openshift-templates/master/serviceaccount-as-oauthclient-single-tenant.yml

# import template
oc create -f https://raw.githubusercontent.com/redhat-ipaas/openshift-templates/master/redhat-ipaas-dev-single-tenant.yml

oc new-app redhat-ipaas-dev-single-tenant \
    -p ROUTE_HOSTNAME="ipaas-dev.${MY_IP}.nip.io" \
    -p OPENSHIFT_MASTER=$(oc whoami --show-server) \
    -p OPENSHIFT_OAUTH_CLIENT_ID=system:serviceaccount:$(oc project -q):ipaas-oauth-client \
    -p OPENSHIFT_OAUTH_CLIENT_SECRET=$(oc sa get-token ipaas-oauth-client) \
    -p OPENSHIFT_OAUTH_DEFAULT_SCOPES="user:info user:check-access role:edit:$(oc project -q):! role:system:build-strategy-source:$(oc project -q)" \
    -p GITHUB_OAUTH_CLIENT_ID="asdfas" \
    -p GITHUB_OAUTH_CLIENT_SECRET="asfd"
jludvice commented 7 years ago

@dsimansk I just opened PR #21

jludvice commented 7 years ago

Hello @chirino, what do you think about PR #21 ?

rhuss commented 7 years ago

Added with #35