Commit Graph

17 Commits

Author SHA1 Message Date
e37ee54d25 Add ability for cauth sites to download ssh public keys
This removes the last need to directly access the upstream database
(from the git server), so remove that view as well.
2017-12-10 17:23:03 +01:00
6df2043e4d Remove community authentication 1.0
Community authentication 1.0 relied on PostgreSQL connections between
all servers, and hasn't been used for years.

This includes removing the code that migrates users from the old
community authentication system to the new one. This means that any user
who has not logged in since 2011 will no longer be able to user their
oan account, and have to create a new one.
2017-12-10 16:46:43 +01:00
2f8bbc40dd Replace pgq with trivial local queue implementation
The queue used for varnish purges has so few entries that it's really
not worth paying the management overhead for skytools/pgq. Instead we
can use a very simple local deamon using LISTEN/NOTIFY to fire them off.

Now include a proper nagios plugin in this package, so we can get rid
of the not-very-nice munin plugin currently used in the deployment.
2016-05-14 19:49:12 +02:00
33ed40343b Add support for varnish purging based on expressions
Previously we would only purge based on URLs, but some of the upcoming
new work requires arbitrary expression purging.

NOTE! Require the creation of the new SQL procecure in the database,
either from varnish.sql or varnish_local.sql depending on if it's prod
or dev.
2012-10-03 12:48:47 +02:00
b91f977877 Don't include old ssh keys when new ones exist
This would cause a UNIQUE violation on the git server...
2012-08-21 12:17:21 +02:00
48d6511186 Fixes in developer install instructions and scripts
Per Josh Kupershmidt
2012-05-23 15:26:33 +02:00
17a1ca3e4e mediawiki seems to require a community_login_exists() - the existing only considers the "new" user table, make it also look at the "old" one 2012-05-16 11:30:21 -04:00
fc35a7eddd Usernames must be checked case insensitively 2011-12-20 11:32:07 +00:00
a331c1f677 Add a varnish_purge() function to be used in local installs 2011-12-11 14:17:06 +01:00
14935a25d0 Add view used to dump ssh keys for git service 2011-11-27 16:44:15 +01:00
27fc2a7e3c Migrate ssh keys and store them in a UserProfile table 2011-11-27 14:44:18 +01:00
2315b5a5ec Make community_login() look users up in the old system as well
Instead of requiring all users to log in to the main website once,
this allows them to keep using their old password on any aux sites
that uses the community login system.

We might want to consider actually migrating the accounts to the new
system at some point in the future, but for now, just allow logins
against the old tables, and have migration only happen when the
user logs into the main website.
2011-11-20 12:27:04 +01:00
cebe063a5e Add required table iptocountry, for downloads 2011-08-20 21:56:24 +02:00
318391acda Fix login functions to be compatible with pg 9.0 2011-08-17 19:51:05 +02:00
f92709d2a6 Implement basic varnish purging
This allows all models inherited from PgModel to specify which
URLs to purge by either setting a field or defining a function
called purge_urls, at which point they will be purged whenever
the save signal is fired.

Also implements a form under /admin/purge/ that allows for manual
purging. This should probably be extended in the future to show
the status of the pgq slaves, but that will come later.

Includes a SQL function that posts the expires to a pgq queue. For
a local deployment, this can be replaced with a simple void function
to turn off varnish purging.
2011-06-14 19:48:48 +02:00
a9e5403b5b Enforce lowercase usernames everywhere. 2010-06-22 11:37:39 +02:00
31400cc2d3 community login API implementation on top of django authentication 2010-01-13 22:11:57 +01:00