| |
@@ -19,10 +19,8 @@
|
| |
/usr/sbin/ipset add osbuildapi $j
|
| |
done
|
| |
|
| |
- {% if env == 'staging' %}
|
| |
- # in stg we need to add identity.api because we are using api.stage above.
|
| |
- # in prod this is already the same as api.openshift.com, so skip it.
|
| |
- RESOLVEQUERY=`resolvectl -4 --cache=no --legend=no query identity.api.openshift.com 2> /dev/null`
|
| |
+ # both stage and prod authenticate using sso.redhat.com
|
| |
+ RESOLVEQUERY=`resolvectl -4 --cache=no --legend=no query sso.redhat.com 2> /dev/null`
|
| |
test $? -eq 0 || exit $?
|
| |
|
| |
NEWIDENTITYIPS=`echo "$RESOLVEQUERY" | grep link | sed -E 's/.* ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+).*/\1/g' | sort -n`
|
| |
@@ -31,4 +29,3 @@
|
| |
do
|
| |
/usr/sbin/ipset add osbuildapi $j
|
| |
done
|
| |
- {% endif %}
|
| |
identity.api.openshift.com was shut down several hours ago. The plugin now
needs to use sso.redhat.com instead.
This commit adjusts the token URL and the script that pokes holes in the
firewall for selected domains.