How to pass X.509 certificate information through Nginx to Review Board
Hello, We are hosting a RB instance in our infrastructure, sitting behing Nginx and uWSGI. I would like to use X.509 certificates authentication. Is there any way how to accomplish this? The problem is that Nginx cannot just pass connections through, so any SSL connection ends there. My ideas are: 1) Use fastcgi and pass necessary data as environmental variables, or 2) keep using the same architecture and use WSGI parameters instead. The question is what variables/parameters shall I set? Found """ ("SSL_CLIENT_S_DN",_("DN (Distinguished Name)")), ("SSL_CLIENT_S_DN_CN", _("CN (Common Name)")), ("SSL_CLIENT_S_DN_Email", _("Email address")), """ in the sources, so I guess those are the variable names. If those really are the variable names I should set, will it work also if I use WSGI parameters of the same name or not? Please confirm or give a hint, I didn't manage to find any straightforward documentation on this, only sources :-) Thanks a lot! Cheers, Ondrej Kupka -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Hosting service list empty
Reinstalled using easy_install, PITA, ruined all my path settings and stuff because of a bit different directory structure, but now I can see the services in the droplist. Thanks a lot! Cheers, Ondra On Wednesday, July 18, 2012 12:00:04 AM UTC+2, Christian Hammond wrote: > > Don't use pip. Use easy_install. I don't know that pip supports Python > entrypoints. > > Christian > > -- > Christian Hammond - chip...@chipx86.com > Review Board - http://www.reviewboard.org > VMware, Inc. - http://www.vmware.com > > > On Tue, Jul 17, 2012 at 2:41 PM, tchap wrote: > >> Difficult to remember how I installed it. Used virtualenv to create the >> environment, as usual. Then pip install ReviewBoard. >> >> For upgrade I always do pip install --upgrade ReviewBoard, then rb-site >> upgrade site. >> >> Can try to reinstall it and see if anything gets better. Database will >> stay where it is, so it will be easy to set up... >> >> And I use uWSGI, not Apache, with virtualenv option pointing to my >> virtualenv. >> >> Cheers, >> Ondra >> >> >> On Tuesday, July 17, 2012 11:27:57 PM UTC+2, Christian Hammond wrote: >>> >>> Can you go over how you installed Review Board, and how you upgraded it? >>> >>> Were there any changes you made to the virtualenv before/after the >>> upgrade? And are you 100% sure that Apache is running it fully out of that >>> virtualenv? It looks like it can't find the registrations. >>> >>> Christian >>> >>> -- >>> Christian Hammond - chip...@chipx86.com >>> Review Board - http://www.reviewboard.org >>> VMware, Inc. - http://www.vmware.com >>> >>> >>> On Tue, Jul 17, 2012 at 2:25 PM, tchap wrote: >>> >>>> Ah, I am stupid, cut the log message too early, the first one ends with >>>> >>>> DistributionNotFound: PIL >>>> >>>> Strange, since PIL is installed: >>>> >>>> PIL - Python Imaging Library >>>> INSTALLED: 1.1.7 >>>> LATEST:1.1.6 >>>> >>>> Anyway, I really have no idea what is happening so I am sorry if I am >>>> posting something completely off :-) >>>> >>>> Cheers, >>>> Ondra >>>> >>>> On Tuesday, July 17, 2012 10:49:00 PM UTC+2, tchap wrote: >>>>> >>>>> Hi Christian, >>>>> >>>>> Thanks a lot for the reply. >>>>> >>>>> It's Python 2.7.1, Ubuntu 11.04, using virtualenv for Review Board. >>>>> >>>>> I am sorry I didn't check the logs earlier, it of course holds >>>>> probably the right information. But I still don't know what to do :-) >>>>> >>>>> 2012-07-17 22:27:51,890 - ERROR - Error loading authentication backend >>>>> {ldap|ad|nis|x509}: PIL # get the same for all the backends mentioned >>>>> Traceback (most recent call last): >>>>> File "/var/www/wsgi/reviewboard/**pyt**honenv/lib/python2.7/site-** >>>>> pack**ages/reviewboard/accounts/**back**ends.py", line 526, in >>>>> get_registered_auth_backends >>>>> yield entry.name, entry.load() >>>>> File "/var/www/wsgi/reviewboard/**pyt**honenv/lib/python2.7/site-** >>>>> pack**ages/pkg_resources.py", line 1988, in loadif require: >>>>> self.require(env, installer) >>>>> File "/var/www/wsgi/reviewboard/**pyt**honenv/lib/python2.7/site-** >>>>> pack**ages/pkg_resources.py", line 2001, in require >>>>> working_set.resolve(self.dist.requires(self.extras),env,**inst >>>>> **aller)) File "/var/www/wsgi/reviewboard/**pyt** >>>>> honenv/lib/python2.7/site-**pack**ages/pkg_resources.py", line 584, >>>>> in resolve >>>>> raise DistributionNotFound(req) >>>>> >>>>> And then, for all the hosting services, I get >>>>> >>>>> ERROR:root:Unable to load repository hosting service github = >>>>> reviewboard.hostingsvcs.**github**:GitHub: PIL >>>>> 2012-07-17 12:38:52,179 - ERROR - Unable to load repository hosting >>>>> service github = reviewboard.hostingsvcs.**github**:GitHub: PIL >>>>> >>>>> Thanks a lot again! >>>>> >>>>> Cheers, >>>>> Ondra >>>
Re: Hosting service list empty
Difficult to remember how I installed it. Used virtualenv to create the environment, as usual. Then pip install ReviewBoard. For upgrade I always do pip install --upgrade ReviewBoard, then rb-site upgrade site. Can try to reinstall it and see if anything gets better. Database will stay where it is, so it will be easy to set up... And I use uWSGI, not Apache, with virtualenv option pointing to my virtualenv. Cheers, Ondra On Tuesday, July 17, 2012 11:27:57 PM UTC+2, Christian Hammond wrote: > > Can you go over how you installed Review Board, and how you upgraded it? > > Were there any changes you made to the virtualenv before/after the > upgrade? And are you 100% sure that Apache is running it fully out of that > virtualenv? It looks like it can't find the registrations. > > Christian > > -- > Christian Hammond - chip...@chipx86.com > Review Board - http://www.reviewboard.org > VMware, Inc. - http://www.vmware.com > > > On Tue, Jul 17, 2012 at 2:25 PM, tchap wrote: > >> Ah, I am stupid, cut the log message too early, the first one ends with >> >> DistributionNotFound: PIL >> >> Strange, since PIL is installed: >> >> PIL - Python Imaging Library >> INSTALLED: 1.1.7 >> LATEST:1.1.6 >> >> Anyway, I really have no idea what is happening so I am sorry if I am >> posting something completely off :-) >> >> Cheers, >> Ondra >> >> On Tuesday, July 17, 2012 10:49:00 PM UTC+2, tchap wrote: >>> >>> Hi Christian, >>> >>> Thanks a lot for the reply. >>> >>> It's Python 2.7.1, Ubuntu 11.04, using virtualenv for Review Board. >>> >>> I am sorry I didn't check the logs earlier, it of course holds probably >>> the right information. But I still don't know what to do :-) >>> >>> 2012-07-17 22:27:51,890 - ERROR - Error loading authentication backend >>> {ldap|ad|nis|x509}: PIL # get the same for all the backends mentioned >>> Traceback (most recent call last): >>> File "/var/www/wsgi/reviewboard/**pythonenv/lib/python2.7/site-** >>> packages/reviewboard/accounts/**backends.py", line 526, in >>> get_registered_auth_backends >>> yield entry.name, entry.load() >>> File >>> "/var/www/wsgi/reviewboard/**pythonenv/lib/python2.7/site-**packages/pkg_resources.py", >>> >>> line 1988, in loadif require: self.require(env, installer) >>> File >>> "/var/www/wsgi/reviewboard/**pythonenv/lib/python2.7/site-**packages/pkg_resources.py", >>> >>> line 2001, in require >>> working_set.resolve(self.dist.**requires(self.extras),env,**installer)) >>> File >>> "/var/www/wsgi/reviewboard/**pythonenv/lib/python2.7/site-**packages/pkg_resources.py", >>> >>> line 584, in resolve >>> raise DistributionNotFound(req) >>> >>> And then, for all the hosting services, I get >>> >>> ERROR:root:Unable to load repository hosting service github = >>> reviewboard.hostingsvcs.**github:GitHub: PIL >>> 2012-07-17 12:38:52,179 - ERROR - Unable to load repository hosting >>> service github = reviewboard.hostingsvcs.**github:GitHub: PIL >>> >>> Thanks a lot again! >>> >>> Cheers, >>> Ondra >>> >>> On Tuesday, July 17, 2012 8:10:23 PM UTC+2, Christian Hammond wrote: >>>> >>>> Hi tchap, >>>> >>>> Items for that list are generated based on Python modules that are >>>> registered on the system during package installation. These are called >>>> Entrypoints. It sounds like this registration is missing. >>>> >>>> What version of Python are you using, and which OS/distribution? >>>> >>>> Can you scan your reviewboard.log and your web server's log file for >>>> any errors? >>>> >>>> Christian >>>> >>>> >>>> >>>> On Jul 17, 2012, at 4:36, tchap wrote: >>>> >>>> Hello, >>>> >>>> I am having a problem with our Review Board instance. I've upgraded >>>> from 1.6.4 (I think) to 1.6.9 recently, because of the GitHub issue, and >>>> trying to set up repositories correctly to communicate with GitHub, I've >>>> discovered that the Hosted service list is completely empty. How is that >>>> possible? Is it possible that DB is somehow messed up? And to be honest, >>>> I &g
Re: Hosting service list empty
Ah, I am stupid, cut the log message too early, the first one ends with DistributionNotFound: PIL Strange, since PIL is installed: PIL - Python Imaging Library INSTALLED: 1.1.7 LATEST:1.1.6 Anyway, I really have no idea what is happening so I am sorry if I am posting something completely off :-) Cheers, Ondra On Tuesday, July 17, 2012 10:49:00 PM UTC+2, tchap wrote: > > Hi Christian, > > Thanks a lot for the reply. > > It's Python 2.7.1, Ubuntu 11.04, using virtualenv for Review Board. > > I am sorry I didn't check the logs earlier, it of course holds probably > the right information. But I still don't know what to do :-) > > 2012-07-17 22:27:51,890 - ERROR - Error loading authentication backend > {ldap|ad|nis|x509}: PIL # get the same for all the backends mentioned > Traceback (most recent call last): > File > "/var/www/wsgi/reviewboard/pythonenv/lib/python2.7/site-packages/reviewboard/accounts/backends.py", > > line 526, in get_registered_auth_backends > yield entry.name, entry.load() > File > "/var/www/wsgi/reviewboard/pythonenv/lib/python2.7/site-packages/pkg_resources.py", > > line 1988, in loadif require: self.require(env, installer) > File > "/var/www/wsgi/reviewboard/pythonenv/lib/python2.7/site-packages/pkg_resources.py", > > line 2001, in require > working_set.resolve(self.dist.requires(self.extras),env,installer)) > File > "/var/www/wsgi/reviewboard/pythonenv/lib/python2.7/site-packages/pkg_resources.py", > > line 584, in resolve > raise DistributionNotFound(req) > > And then, for all the hosting services, I get > > ERROR:root:Unable to load repository hosting service github = > reviewboard.hostingsvcs.github:GitHub: PIL > 2012-07-17 12:38:52,179 - ERROR - Unable to load repository hosting > service github = reviewboard.hostingsvcs.github:GitHub: PIL > > Thanks a lot again! > > Cheers, > Ondra > > On Tuesday, July 17, 2012 8:10:23 PM UTC+2, Christian Hammond wrote: >> >> Hi tchap, >> >> Items for that list are generated based on Python modules that are >> registered on the system during package installation. These are called >> Entrypoints. It sounds like this registration is missing. >> >> What version of Python are you using, and which OS/distribution? >> >> Can you scan your reviewboard.log and your web server's log file for any >> errors? >> >> Christian >> >> >> >> On Jul 17, 2012, at 4:36, tchap wrote: >> >> Hello, >> >> I am having a problem with our Review Board instance. I've upgraded from >> 1.6.4 (I think) to 1.6.9 recently, because of the GitHub issue, and trying >> to set up repositories correctly to communicate with GitHub, I've >> discovered that the Hosted service list is completely empty. How is that >> possible? Is it possible that DB is somehow messed up? And to be honest, I >> don't know if there were any items in that droplist before the upgrade, so >> I have no idea when it got messed up. Any ideas what to do about it? What >> info/dump do you need, do you want me to provide? >> >> Thanks a lot! >> >> -- >> Want to help the Review Board project? Donate today at >> http://www.reviewboard.org/donate/ >> Happy user? Let us know at http://www.reviewboard.org/users/ >> -~--~~~~--~~--~--~--- >> To unsubscribe from this group, send email to >> reviewboard+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/reviewboard?hl=en >> >> -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Hosting service list empty
Hi Christian, Thanks a lot for the reply. It's Python 2.7.1, Ubuntu 11.04, using virtualenv for Review Board. I am sorry I didn't check the logs earlier, it of course holds probably the right information. But I still don't know what to do :-) 2012-07-17 22:27:51,890 - ERROR - Error loading authentication backend {ldap|ad|nis|x509}: PIL # get the same for all the backends mentioned Traceback (most recent call last): File "/var/www/wsgi/reviewboard/pythonenv/lib/python2.7/site-packages/reviewboard/accounts/backends.py", line 526, in get_registered_auth_backends yield entry.name, entry.load() File "/var/www/wsgi/reviewboard/pythonenv/lib/python2.7/site-packages/pkg_resources.py", line 1988, in loadif require: self.require(env, installer) File "/var/www/wsgi/reviewboard/pythonenv/lib/python2.7/site-packages/pkg_resources.py", line 2001, in require working_set.resolve(self.dist.requires(self.extras),env,installer)) File "/var/www/wsgi/reviewboard/pythonenv/lib/python2.7/site-packages/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) And then, for all the hosting services, I get ERROR:root:Unable to load repository hosting service github = reviewboard.hostingsvcs.github:GitHub: PIL 2012-07-17 12:38:52,179 - ERROR - Unable to load repository hosting service github = reviewboard.hostingsvcs.github:GitHub: PIL Thanks a lot again! Cheers, Ondra On Tuesday, July 17, 2012 8:10:23 PM UTC+2, Christian Hammond wrote: > > Hi tchap, > > Items for that list are generated based on Python modules that are > registered on the system during package installation. These are called > Entrypoints. It sounds like this registration is missing. > > What version of Python are you using, and which OS/distribution? > > Can you scan your reviewboard.log and your web server's log file for any > errors? > > Christian > > > > On Jul 17, 2012, at 4:36, tchap wrote: > > Hello, > > I am having a problem with our Review Board instance. I've upgraded from > 1.6.4 (I think) to 1.6.9 recently, because of the GitHub issue, and trying > to set up repositories correctly to communicate with GitHub, I've > discovered that the Hosted service list is completely empty. How is that > possible? Is it possible that DB is somehow messed up? And to be honest, I > don't know if there were any items in that droplist before the upgrade, so > I have no idea when it got messed up. Any ideas what to do about it? What > info/dump do you need, do you want me to provide? > > Thanks a lot! > > -- > Want to help the Review Board project? Donate today at > http://www.reviewboard.org/donate/ > Happy user? Let us know at http://www.reviewboard.org/users/ > -~--~~~~--~~--~--~--- > To unsubscribe from this group, send email to > reviewboard+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/reviewboard?hl=en > > -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Hosting service list empty
Hello, I am having a problem with our Review Board instance. I've upgraded from 1.6.4 (I think) to 1.6.9 recently, because of the GitHub issue, and trying to set up repositories correctly to communicate with GitHub, I've discovered that the Hosted service list is completely empty. How is that possible? Is it possible that DB is somehow messed up? And to be honest, I don't know if there were any items in that droplist before the upgrade, so I have no idea when it got messed up. Any ideas what to do about it? What info/dump do you need, do you want me to provide? Thanks a lot! -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en