# External Domain configuration

**URL:** <https://discuss.pomerium.com/t/external-domain-configuration/92>\
**Category:** Support\
**Tags:** idp, k8s\
**Created:** [March 16, 2022, 5:52pm UTC](https://discuss.pomerium.com/t/external-domain-configuration/92 "2022-03-16T17:52:27Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![saranicole](https://yyz1.discourse-cdn.com/flex031/user_avatar/discuss.pomerium.com/saranicole/32/61_2.png) [@saranicole](https://discuss.pomerium.com/u/saranicole)\
**Post date:** [March 23, 2022, 1:22pm UTC](https://discuss.pomerium.com/t/external-domain-configuration/92/16 "2022-03-23T13:22:46Z")

</div>

Progress! I didn’t understand that the policy allow meant the idp email domain, so that is helpful. With the policy `ingress.pomerium.io/policy: '[{"allow":{"and":[{"domain":{"is":"sw.com"}}]}}]'` on the verify ingress I didn’t get a 403 but got an immediate redirect to the authenticate url. However with this it still resulted in `upstream connect error or disconnect/reset before headers. reset reason: connection failure`. I take this to mean there is an issue with the site I am redirecting to somehow?

Update: Interestingly, I added the policy and then reinstalled pomerium with insecure set to true, then reinstalled again with insecure set to false. I deleted all pods to make sure they reset. Now I’m getting the 403 forbidden again with the policy added.

Update 2: And it’s redirecting again to the upstream connect error. I pinned the ingress controller image to v0.15.3 and then removed the pin, and now it’s redirecting again.

I see from issue [Getting connection\_failure errors - #10 by travisgroth](https://discuss.pomerium.com/t/getting-connection-failure-errors/88/10) that I am running into a bug. I tried installing v30.1.1 ( v30.1.10 didn’t exist ) with ingress controller v0.15.3 but I still got the 403 and upstream connection failures. Happy to help troubleshoot any way I can.

---

_[View the full topic](https://discuss.pomerium.com/t/external-domain-configuration/92)._
