<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: External hostname and multitenancy in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/789413#M23622</link>
    <description>Hi did you manage to find a solution to this problem?</description>
    <pubDate>Tue, 11 Jan 2022 08:39:39 GMT</pubDate>
    <dc:creator>JessLund</dc:creator>
    <dc:date>2022-01-11T08:39:39Z</dc:date>
    <item>
      <title>External hostname and multitenancy</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773172#M23195</link>
      <description>&lt;P&gt;So, i have set up a multitenancy sas viya environment, onboarded 4 tenants and everything is green. I can login in to the individual tenants with local hostnames and all services are onbared and my workers are connected to the controller.&lt;/P&gt;&lt;P&gt;However, the problem starts when exposing this to the internet trough a load balancer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set up dns, followed this guide for setting external hostname&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-Configure-a-Reverse-Proxy-in-Front-of-SAS-Viya-Web/ta-p/570719" target="_blank" rel="noopener"&gt;How to Configure a Reverse Proxy in Front of SAS V... - SAS Support Communities&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I find the request coming in in the ssl request log with correct header like so&lt;/P&gt;&lt;P&gt;10.245.96.228 - - [30/Sep/2021:21:15:10 +0200] develop0.****.****.****.no "GET /SASLogon/login HTTP/1.1" 200 2957 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0"&lt;BR /&gt;10.245.96.228 - - [30/Sep/2021:21:15:10 +0200] develop0.****.****.****.no "GET /SASLogon/resources/images/transparent.png HTTP/1.1" 304 - &lt;A href="https://develop0.statlog.test.nhn.no/SASLogon/login" target="_blank" rel="noopener"&gt;https://develop0.****.****.****.no/SASLogon/login&lt;/A&gt; "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0"&lt;BR /&gt;10.245.96.228 - - [30/Sep/2021:21:15:10 +0200] develop0.****.****.****.no "GET /SASLogon/resources/images/saslogo.svg HTTP/1.1" 304 - &lt;A href="https://develop0.statlog.test.nhn.no/SASLogon/login" target="_blank" rel="noopener"&gt;https://develop0.****.****.****.no/SASLogon/login&lt;/A&gt; "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0"&lt;BR /&gt;10.245.96.229 - - [30/Sep/2021:21:15:11 +0200] - "GET /" 302 229 "-" "-"&lt;/P&gt;&lt;P&gt;(i have "blurred" the actual hostname, but they are the external one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;service url for viya and http are correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But all external tenant urls leads to the provider tenant and not the individual tenant the request stated above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 00:39:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773172#M23195</guid>
      <dc:creator>m0rbid</dc:creator>
      <dc:date>2021-10-09T00:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: External hostname and multitenancy</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773179#M23196</link>
      <description>&lt;P&gt;While a proper answer would depend on your configuration details, here are some factors to be considered.&lt;BR /&gt;1.In a multi tenant deployment not all services are tenant specific. Services such as Apache Web Server are a part of shared services. What the individual tenants are sure to receive is a specific instance of CAS .&lt;/P&gt;
&lt;P&gt;2.If you have configured your SAS Viya behind a reverse proxy and/or load balancer, then the external browser will only point to the reverse proxy. Any service behind the Viya Apache server will not be aware of the reverse proxy and vice versa.&amp;nbsp; Thus any internal Viya service will only point to the Apache Service which may be operating from the provider tenant.&lt;BR /&gt;Perhaps a ticket to SAS Tech Support may be provide you with the an answer appropriate and relevant to your environment.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 02:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773179#M23196</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-10-09T02:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: External hostname and multitenancy</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773211#M23197</link>
      <description>I'm not sure how to configure viya to live behind a reverse proxy. If i point my browser to tenant1.internal.hostname i can login with the tenant username and pass. If i point my browser to tenant1.external.hostname i get to the login page but cannot login to tenant1, only the provider tenant even tho my tenantid gets through to apache according to the request log above</description>
      <pubDate>Sat, 09 Oct 2021 12:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773211#M23197</guid>
      <dc:creator>m0rbid</dc:creator>
      <dc:date>2021-10-09T12:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: External hostname and multitenancy</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773213#M23198</link>
      <description>&lt;P&gt;I think the best way is to approach SAS Tech Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 12:45:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773213#M23198</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-10-09T12:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: External hostname and multitenancy</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773398#M23199</link>
      <description>In a multi-tenancy configuration, SAS gets the tenant ID from the request. Given we can see the tenant ID in the request to apache I suspect Viya is not aware of the external hostname so is considering the entire hostname the base url instead of identifying the subdomain for the tenant separately.&lt;BR /&gt;&lt;BR /&gt;Did you set the config/viya/sas.httpproxy.external.hostname and sas.httpproxy.external.port values using sas-bootstrap-config?</description>
      <pubDate>Mon, 11 Oct 2021 12:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773398#M23199</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-10-11T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: External hostname and multitenancy</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773401#M23200</link>
      <description>&lt;P&gt;thanks for the reply, yes i did, and i have confirmed it with a config read&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 13:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773401#M23200</guid>
      <dc:creator>m0rbid</dc:creator>
      <dc:date>2021-10-11T13:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: External hostname and multitenancy</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773404#M23201</link>
      <description>&lt;P&gt;Was this provided in vars.yaml when onboarding the tenant? &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/calcdc/3.5/caltenants/n1dulp7rsnyxhzn1a4xx2a1cpzco.htm#n0t1f81it6fewin13fd293ag57rw" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/doc/en/calcdc/3.5/caltenants/n1dulp7rsnyxhzn1a4xx2a1cpzco.htm#n0t1f81it6fewin13fd293ag57rw&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also need to include the load balancer in the zones.internal.hostnames value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/sasadmincdc/v_015/calconfigref/n08086sasconfiguration0admin.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/sasadmincdc/v_015/calconfigref/n08086sasconfiguration0admin.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 13:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/773404#M23201</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-10-11T13:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: External hostname and multitenancy</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/789413#M23622</link>
      <description>Hi did you manage to find a solution to this problem?</description>
      <pubDate>Tue, 11 Jan 2022 08:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/External-hostname-and-multitenancy/m-p/789413#M23622</guid>
      <dc:creator>JessLund</dc:creator>
      <dc:date>2022-01-11T08:39:39Z</dc:date>
    </item>
  </channel>
</rss>

