Commit Graph

75 Commits

Author SHA1 Message Date
2ea607b942 Switch to using staticfiles app for serving, well, static files
This is required by the new admin interface
2013-06-16 16:35:21 +02:00
5d608f1fe4 Update db settings for new database config format 2013-06-16 16:35:21 +02:00
ec5b9fa183 Add usergroup listing module
Jonathan Katz
2013-05-08 22:07:30 +02:00
4ccf10540a Reimplement list searching on top of http API
The new archives has a http api - use that one for searching instead
of directly talking to the database.

With the new API, we always fetch the complete search results (still
capped server-side at 1000 items), and store them locally in memcached
for 10 minutes. That way, paging will only hit the local memcached and
not the remote http api *or* the SQL api.
2013-01-12 17:48:09 +01:00
0a69f0b831 Add specific view for handling CSRF failures
This generates the error in a bit nicer way inside our framework,
instead of throwing the default django error.
2012-11-07 20:57:22 +01:00
f6fd1f2e97 Enable CSRF protection by default
Most of these forms look pretty benign, but the user profile form, which
includes an SSH key field, certainly needs to be protected.

The survey form is unprotected because it's served over insecure HTTP
and the Varnish proxy strips cookies, which is required by the builtin
CSRF protection.

Marti Raudsepp
2012-11-05 14:10:39 +01:00
ef711553b9 Add (protected) API to queue varnish purge requests
We want an API for this so they end up in the queue with all the other
requests, and get delivered to all our frontends without needing each node
to know about which frontends exist.
2012-10-03 14:19:28 +02:00
437557acd3 Make our session cookie secure by default, and locked to www.postgresql.org
This increases session security, obviously... It will also break local development
installs, which will have to add the two rows that this patch adds to the
documentation.
2011-12-17 19:40:33 +01:00
758a721405 Allow for the ftpsite pickle to be uploaded via https
Previously this had to be rsynced outside of the website. By allowing the
upload here, and automatically purging the data from varnish, we will reach
"almost instant" updates of the ftp site structure on the web.
2011-12-06 19:13:32 +01:00
563790f170 Add views and templates to perform searches from the main web app
This makes it possible to render the search results on the main engine.
We still run the query on the seprate search server, so once has to be
configured in settings_local.py with the key SEARCH_DSN (standard
PostgreSQL/psycopg2 connection string)
2011-12-03 13:01:18 +01:00
84ba10f1ca Concept of mastersite is no longer used, remove all references 2011-11-27 12:35:02 +01:00
12cdc90e3e Implement is_behind_cache() and get_client_ip() functions to handle
the fact that when pages are served through Varnish, the request will come
from the Varnish server and not from the client.

Create a /system_information page that shows some information about the
connection to help diagnose how the caches work.
2010-06-17 14:11:50 +02:00
601a953f21 Add all the settings available to settings.py, even the ones that are
normally overwritten using settings_local.py.
2010-06-13 15:17:25 +02:00
047982b81d Refactor the list of objects needing moderation into utils/moderation.py,
and create a script to use this to generate a moderation report email.
2010-06-13 15:11:53 +02:00
81caa54e1b Clean up the admin interface - move our special links to the index page only,
remove them from the login form. Remove the Sites application, since we don't
use it.
2010-06-11 15:58:03 +02:00
93d3450213 Add app to store and view the PostgreSQL Weekly News, including generation
of the RSS feed. (Which will receive a new URL now that it lives in the
actual app and not in with the static files, so a redirect will be needed
there).
2010-06-10 20:43:54 +02:00
521920542b Get the information for the ftp browser from a file that is generated
on the ftp server, instead of crawling the directoreis directly. This
removes the requirement to sync almost 10Gb worth of ftp site onto the
web server...

The pickle file for this is currently around 1Mb, so it's not a huge
burden on the server. If it grows larger in the future, we may want to
re-think this and split it up, or put it in a database format or something
like that.
2010-06-10 14:46:16 +02:00
cad9eddd92 Implement the feature matrix 2010-01-11 22:55:00 +01:00
2982541900 Add bug submission form 2010-01-11 16:09:49 +01:00
4b9efc5bdc Add support for mirror selection and redirection. 2010-01-02 19:36:24 +01:00
2f671fe3d6 Add support for surveys 2009-12-28 16:12:44 +01:00
322da0de7e Implement an authentication backend that will look up the user in the old
community login system in case it's not present in the django auth one,
and if necessary create the object in the django one.
2009-09-16 16:43:46 +02:00
df91488ae6 Add a template context processor that sets link_root on all secure requests,
so that we can generate proper linkbacks to the non-secure version of the
site for all static content.
2009-09-16 16:09:54 +02:00
f023480689 Actually support logging in without using the admin interface 2009-09-16 15:07:23 +02:00
90b758c247 A first very basic import.
Contains basic functionality, and an import of most of the static content
from the old site.

There is still plenty more to do...
2009-09-14 14:39:25 +02:00