configuring shibboleth on AWS using ELB
Nate Klingenstein
ndk at signet.id
Tue Dec 10 07:57:10 EST 2019
Deirdre,
I prefer to use layer 7 (application) load balancers for better stickiness. Others on the list will disagree with good reason and it really depends on use case.
In most cases it doesn't matter that much. Some security, speed, and user experience tradeoffs, but nothing dramatic unless you have very specific requirements.
Best,
Nate.
On Dec 9, 2019 11:38 PM, Deirdre Kirmis <Deirdre.Kirmis at asu.edu> wrote:
In the continuing saga of me trying to get shibboleth to work on AWS EC2 with a load balancer…I removed the load balancer and added redirect to https (and generated local SSL cert files and pointed to them in my ssl.conf) and shibboleth is now working perfectly on my server.
So, my next question…for those of you that have gotten this working…did you use a network load balancer, or an application load balancer?
I have been trying with an application LB and have been told that I probably need to use NLB.
Deirdre Kirmis
Technology Services
Arizona State University Library
480-965-7240
From: users <users-bounces at shibboleth.net> On Behalf Of Nate Klingenstein
Sent: Tuesday, December 3, 2019 6:49 PM
To: Shib Users <users at shibboleth.net>
Subject: Re: configuring shibboleth on AWS using ELB
It's hard to tell you without actually seeing your configuration, but the only other possible cause I can think of would be a badly misconfigured IdP initiated setup. If you're working with SP first, it's probably one of those two issues: metadata or server misconfiguration.
On Tue, Dec 3, 2019, 8:59 AM Deirdre Kirmis <Deirdre.Kirmis at asu.edu <mailto:Deirdre.Kirmis at asu.edu> > wrote:
In fact, everywhere that I have ServerName configured…I have it configured ashttps://<dns name pointing to my ELB>:443
Is that correct? Is there some other configuration that I missed?
Deirdre Kirmis
Technology Services
Arizona State University Library
480-965-7240
From: Deirdre Kirmis
Sent: Tuesday, December 3, 2019 8:34 AM
To: Nate Klingenstein <ndk at signet.id <mailto:ndk at signet.id> >; Shib Users <users at shibboleth.net <mailto:users at shibboleth.net> >
Subject: RE: configuring shibboleth on AWS using ELB
So, I do already have the ServerName directive pointing to the CNAME record that I set up for the ELB, in all instances of “ServerName” in the config files (ie: httpd.conf, ssl.conf, etc) .. those files are pointing to the DNS entry for the load balancer. Everywhere that I am referencing my site is using that domain.
Deirdre Kirmis
Technology Services
Arizona State University Library
480-965-7240
From: Nate Klingenstein <ndk at signet.id <mailto:ndk at signet.id> >
Sent: Tuesday, December 3, 2019 6:48 AM
To: Deirdre Kirmis <Deirdre.Kirmis at asu.edu <mailto:Deirdre.Kirmis at asu.edu> >; Shib Users <users at shibboleth.net <mailto:users at shibboleth.net> >
Subject: RE: configuring shibboleth on AWS using ELB
Deirdre,
Yes, it will work fine. If you're using Apache, you need to virtualize the virtual host with the right directives, generally ServerNameloadbalancer.asu.edu:443, so that it "thinks" it's the load balancer AND your metadata needs to reflect this. You can do the same with the Site directive in IIS. Many SP's are deployed like this.
By virtualization, essentially, the web server needs to "think" it's the load balancer when examining inbound messages and generating outbound requests. That's all.
Take care,
Nate.
--------
The Art of Access ®
Nate Klingenstein | Principal
https://www.signet.id/
-----Original message-----
From: Deirdre Kirmis
Sent: Tuesday, December 3 2019, 6:26 am
To: Nate Klingenstein; Shib Users
Subject: Re: configuring shibboleth on AWS using ELB
Nate, thank you so much for your response. Yes, my instance is behind a load-balancer, but I have a DNS entry pointing to the ELB AWS domain, which is what I am using for my SP address. What do you mean by "Get the virtualization on your instance to match ELB"? Will I be able to make this work?
Thank you!
Deirdre Kirmis
Web Application Developer
Discovery Services
ASU Library
Arizona State University
480-965-7240
--------------------------------
From: users <users-bounces at shibboleth.net <mailto:users-bounces at shibboleth.net> > on behalf of Nate Klingenstein <ndk at signet.id <mailto:ndk at signet.id> >
Sent: Tuesday, December 3, 2019 2:11 AM
To: Shib Users <users at shibboleth.net <mailto:users at shibboleth.net> >
Subject: RE: configuring shibboleth on AWS using ELB
Deirdre,
> however in my server log I get an error that the attributes are null. When I try to "fetch" my site metadata, it just spins and never comes back as uploaded. When I manually upload the file, it acts like it was successful, but when I try the test it says my site is not registered. What am I doing wrong?
Sorry, in my haste, I missed this part of your message. It's most likely that your site is behind a load balancer(obviously) and SAMLtest can't issue queries directly to individual nodes behind a load balancer. Even if it could, it would receive the wrong answer. Alternative possibilities exist, but this one looks pretty clear. Get the virtualization on your instance to match ELB and then type in ELB as your IdP address.
You'd eventually have to do this with any IdP, so this is far from a fruitless exercise.
Take care,
Nate.
--
For Consortium Member technical support, see https://wiki.shibboleth.net/confluence/x/coFAAg
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net <mailto:users-unsubscribe at shibboleth.net>
--
For Consortium Member technical support, see https://wiki.shibboleth.net/confluence/x/coFAAg
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20191210/d1f40136/attachment.html>
More information about the users
mailing list