Magnus Hagander [Thu, 25 Jan 2018 20:59:13 +0000 (21:59 +0100)]
Database:ify the list of security patches
This finally moves the patches into the db, which makes it a lot easier
to filter patches in the views.
It also adds the new way of categorising patches, which is assigning
them a CVSSv3 score.
For now, there are no public views to this, and the old static pages
remain. This is so we can backfill all existing security patches before
we make it public.
Magnus Hagander [Tue, 23 Jan 2018 20:20:19 +0000 (21:20 +0100)]
Remove majordomo2 subscription form
Replace it with a redirect to lists.postgresql.org, where pglister lives.
Magnus Hagander [Tue, 23 Jan 2018 20:12:15 +0000 (21:12 +0100)]
Change mailpref redirect to go to pglister
Magnus Hagander [Mon, 22 Jan 2018 11:28:46 +0000 (12:28 +0100)]
Add view that lists all available tags as json
For external consumption. Only tag and description is viewed, but URLs
to the feeds and pages can easily be constructed using it.
Magnus Hagander [Mon, 22 Jan 2018 11:28:14 +0000 (12:28 +0100)]
Fix admin base for non-notification models
Magnus Hagander [Sat, 13 Jan 2018 17:14:13 +0000 (18:14 +0100)]
Add a createuser callback for cauth django plugin
This callback can prevent new users from being created based on specific
criteria. The plugin is defined in settings.py, so it can be any python
code. For example, it can look up in a specific table if this user is
supposed to be allowed to log in at all.
Magnus Hagander [Sat, 13 Jan 2018 17:11:21 +0000 (18:11 +0100)]
Add ability to import user to django cauth example
This has been in used around a number of community sites already,
backpatch it into the upstream master.
Magnus Hagander [Sat, 13 Jan 2018 17:09:27 +0000 (18:09 +0100)]
Add possibility to turn off django cauth using settings in sample
This sample is used across most of our other sites, so add functionality
to install without having a local master repo.
Back-patch of pgeu commit
3e4d8c9101c2d309b134c2f5638aa40db8ef2cf5
Magnus Hagander [Sat, 6 Jan 2018 16:49:30 +0000 (17:49 +0100)]
Fix doc comments for devel version
Don't say version 0.0 in the emails that are sent out. That's what we
call it internally, but the URL should have /devel/ in it. Fix this both
in the template, and then if it comes through in the form again in case
the user picked up a link elsewhere that is incorrect.
Jonathan S. Katz [Fri, 5 Jan 2018 18:59:00 +0000 (13:59 -0500)]
Modify sentence on production PostgreSQL instances on about page.
Jonathan S. Katz [Thu, 4 Jan 2018 17:19:46 +0000 (12:19 -0500)]
Add URL to @postgresql on global footer and Contact page
Magnus Hagander [Thu, 28 Dec 2017 15:09:31 +0000 (16:09 +0100)]
Don't crash when adding models with optional m2m fields
If the m2m field is optional, there will be no "pre" data available, not
even an empty one. Don't crash in this case, just assume it's empty
(which it is).
This could happen when adding a new Organisation, which currently is the
only model we have with optional m2m fields
Magnus Hagander [Wed, 27 Dec 2017 11:14:41 +0000 (12:14 +0100)]
Mark text as safe in bug report email
Since we're sending the email as text/plain, we shouldn't be doing HTML
escaping on it.
Magnus Hagander [Thu, 21 Dec 2017 10:47:43 +0000 (11:47 +0100)]
Update migration with previous changes
This was missed in
ab36183fdac33c699ae7ed076a7ee85a9cbd895e. It's not a
change that actually changes the database in any way, so no need to
create an actual migration.
Magnus Hagander [Thu, 21 Dec 2017 10:43:58 +0000 (11:43 +0100)]
Consistently refer to Community events in submission form
Original patch had "badged", and it was renamed to Community event to
make it more clear, but all texts clearly didn't get the memo.
Magnus Hagander [Wed, 20 Dec 2017 12:58:17 +0000 (13:58 +0100)]
Remove support for "remove after notify" on moderation
This broke when we had ManyToMany relations on a record. We didn't use
to have that, but with tags for news we now do. With this change, the
"reject with a notice" becomes a two step operation, the first one
adding the notification and the second one doing the removal. That'll
have to do for now, and at some point in the future we may create a
completely separate (non /admin/) workflow for moderation and fix it
that way.
Magnus Hagander [Mon, 18 Dec 2017 15:24:23 +0000 (16:24 +0100)]
Fix reply-to address for docs comments emails
Magnus Hagander [Mon, 18 Dec 2017 15:22:11 +0000 (16:22 +0100)]
Set sender name on bug report and docs comments email
Magnus Hagander [Mon, 18 Dec 2017 15:21:01 +0000 (16:21 +0100)]
Add support for setting recipient name and sender name
Stephen Frost [Mon, 18 Dec 2017 14:59:18 +0000 (15:59 +0100)]
Send -bugs and -docs emails from noreply address
Sending from the submitters address runs afoul to DMARC and other
restrictions. Instead, send the email from a defined noreply address.
Instead, add the original submitter to both the Cc and the Reply-To
header, to make sure they receive followups.
Patch by Stephen, minor changes by Magnus
Magnus Hagander [Mon, 18 Dec 2017 14:56:30 +0000 (15:56 +0100)]
Remove dead file
Guillaume Lelarge [Fri, 15 Dec 2017 18:05:14 +0000 (19:05 +0100)]
Update for new edition of book
Magnus Hagander [Wed, 13 Dec 2017 20:30:25 +0000 (21:30 +0100)]
Avoid spans overlapping each other when there are many tags
Magnus Hagander [Wed, 13 Dec 2017 20:21:05 +0000 (21:21 +0100)]
Predictable ordering for newstags
Magnus Hagander [Wed, 13 Dec 2017 20:18:51 +0000 (21:18 +0100)]
Include more fields in newstag admin listing
Daniel Gustafsson [Wed, 13 Dec 2017 11:12:49 +0000 (12:12 +0100)]
Use proper attribute for script language
The 'language' attribute is deprecated and replaced with 'type' in
xhtml.
Daniel Gustafsson [Wed, 13 Dec 2017 10:34:46 +0000 (11:34 +0100)]
Use & entity instead of bare ampersand in text
Using a bare '&' in text elements is sometimes Ok, but always
generate warnings in validation checks. Move to using the amp
entity which is the recommended way to render '&' in xhtml.
Magnus Hagander [Wed, 13 Dec 2017 19:55:07 +0000 (20:55 +0100)]
Add tag support for news items
This lets us separate things like project news from other OSS and from
commercial postings, for example, allowing for people to subscribe to
different feeds with just the parts they are interested in.
Magnus Hagander [Wed, 13 Dec 2017 19:49:52 +0000 (20:49 +0100)]
Add support for notification emails on m2m changes
Unfortunately, we'll send one email for each m2m field, instead of
collecting them to a single one. That's because there is no signal
delivered at the end of them all, there will be one sent for each field.
Luckily we don't have a lot of m2m fields at this point, and no model
has more than one, so at this point that part is not a problem.
It also means that if a regular field *and* an m2m field is changed,
then we will get two notifications.
Finally, enable these notifications for the Organisation fields, meaning
we will get a notification when an Organisation changes managers, which
was not working before.
Magnus Hagander [Mon, 11 Dec 2017 14:30:50 +0000 (15:30 +0100)]
Add support for descriptive texts over m2m checkboxes
This allows the assignment of "hover mouse to show"-descriptions for m2m
fields with multiple checkboxes.
Magnus Hagander [Mon, 11 Dec 2017 14:29:45 +0000 (15:29 +0100)]
Fix submission forms for many2many fields with checkboxes
This includes proper styling (no more centering of the checkbox itself)
and actually saving the m2m fields on submit.
Magnus Hagander [Sun, 10 Dec 2017 16:23:03 +0000 (17:23 +0100)]
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.
Magnus Hagander [Sun, 10 Dec 2017 15:46:43 +0000 (16:46 +0100)]
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.
Magnus Hagander [Sun, 10 Dec 2017 15:40:02 +0000 (16:40 +0100)]
Remove legacy workaround to support old community auth
This workaround enabled a weaker password hasher to work with old
versions of the community authentication plugin. This was already
overridden in prod, but remove the old workaround completely from the
code so we don't accidentally re-enable it.
Daniel Gustafsson [Sun, 10 Dec 2017 11:14:36 +0000 (12:14 +0100)]
Remove IRIX and Tru64 from /about
Support for SGI IRIX was removed from the postgresql.git repo
in commit
ea91a6be8957 with release 9.3 as the last supported
version, and Tru64 in
a6d488cb53 with 9.4 as the last version.
Remove from /about to manage expectations.
Magnus Hagander [Sat, 9 Dec 2017 15:49:53 +0000 (16:49 +0100)]
Remove extra space in tweets
Magnus Hagander [Sat, 9 Dec 2017 15:44:54 +0000 (16:44 +0100)]
Implement automatic tweeting of news
Once a twitter account has been registered (using the twitter_register
management command), the twitter_post command wills start posting all
new news to twitter, once they are approved. It will only post news from
the past 7 days to avoid accidentally flooding with old news.
Magnus Hagander [Sat, 9 Dec 2017 14:54:41 +0000 (15:54 +0100)]
Change personal email to group email for donations
Not only is Josh no longer -core, it's better to consistently refer
people to contact the group addresses to make sure they get timely
responses.
Jonathan S. Katz [Thu, 7 Dec 2017 01:11:08 +0000 (20:11 -0500)]
Add "Associazione ITPUG" to International sites.
Magnus Hagander [Wed, 6 Dec 2017 03:14:37 +0000 (12:14 +0900)]
Prevent changes of column width on events form
Do this by setting the max width of the lefthand column in the table, so
it doesn't change when the checkbox for community events is clicked.
A better solution would of course be to make the forms properly
responsive, but that's part of a "next generation website", rather than
a quick fix...
Jonathan S. Katz [Wed, 6 Dec 2017 03:06:37 +0000 (12:06 +0900)]
Enable events to be badged.
Adds the "badged" flag to the Event model in order to distinguish
community badged events from other PostgreSQL oriented events.
Seven total events will be displayed on the homepage, with up to
four community events displayed. If there are no upcoming
community events then, then the header "Events" is shown.
The event submission interface allows a user to opt-in to
listing an event as a "community" event and provide an
explanation for moderators as to why the event should be
considered a community event.
Expands the list of News and Planet PostgreSQL blog entries to 10.
Jonathan S. Katz [Wed, 6 Dec 2017 02:59:30 +0000 (11:59 +0900)]
Replace frontpage header images with text
It's too much of a pain to regenerate the images when a header needs to
change in some way, and having text is better for searching too. This
slightly changes the strength of the headers, but mostly things look the
same as before.
Jonathan S. Katz [Mon, 4 Dec 2017 14:06:34 +0000 (08:06 -0600)]
Updated "International Sites" page to update URLs for active sites.
Jonathan S. Katz [Sat, 25 Nov 2017 14:43:20 +0000 (09:43 -0500)]
Clean up whitespace in primary Python / HTML files
Clean up the whitespace in the primary Python / HTML files in
order to make it easier to apply changes going forward.
Magnus Hagander [Mon, 27 Nov 2017 20:11:05 +0000 (21:11 +0100)]
Replace personal addresses with group aliases
We were inconsistent between pages, and some of this was many years
old...
Jonathan S. Katz [Tue, 14 Nov 2017 22:31:30 +0000 (17:31 -0500)]
Added another publication format to previous commit.
Jonathan S. Katz [Tue, 14 Nov 2017 22:27:58 +0000 (17:27 -0500)]
Added "PostgreSQL: Up and Running, 3rd Edition" to "Books"
Magnus Hagander [Tue, 14 Nov 2017 17:39:39 +0000 (18:39 +0100)]
Add Mastering Postgresql for App devs book
Jonathan S. Katz [Sat, 11 Nov 2017 22:14:58 +0000 (17:14 -0500)]
Updated "Chinese (Traditional)" international URL.
Jonathan S. Katz [Thu, 9 Nov 2017 13:52:31 +0000 (08:52 -0500)]
Update web pages for the 2017-11-09 release
Updated the /support/security/ page to contain information about
reported and resolved security issues in the 2017-11-09 release.
Moved security issues that only affect version 9.2 and earlier
to the security archive page (/support/security_archive/)
Updated developer roadmap and call out box for the cumulative
release.
Magnus Hagander [Wed, 8 Nov 2017 17:02:58 +0000 (12:02 -0500)]
Explicitly exclude urls with .. in search crawling
There were per-site configured rules defined but the regexp was slightly
incorrectly defined. However, we should just simply never crawl urls
like this unless they are normalized, so for now just add them to the
hardcoded exclusion rules.
Stephen Frost [Tue, 31 Oct 2017 17:33:07 +0000 (13:33 -0400)]
Update roadmap reflect releases, et al
The next upcoming major release would now be 11, not 10, and it's coming
in the third quarter of 2018.
Also, add in the August planned releases to fill out a complete year.
Hopefully by having the minor release dates cover a year it'll be
clear that whenever we do a release set we remove one and add one at the
bottom, instead of randomly adding/removing them at various times.
Magnus Hagander [Mon, 30 Oct 2017 14:25:37 +0000 (15:25 +0100)]
Don't try to log data that's not always available
Magnus Hagander [Mon, 30 Oct 2017 14:22:37 +0000 (15:22 +0100)]
More logging on password resets
Jonathan S. Katz [Sat, 28 Oct 2017 21:19:02 +0000 (17:19 -0400)]
Add clarifying language about how the EOL versioning policy works.
Language proposed by Noah Misch.
Magnus Hagander [Fri, 13 Oct 2017 13:56:25 +0000 (15:56 +0200)]
Attempt to fix version sorting in ftp browser
There was already an ugly hack to handle this, so make it a bit uglier
with even more hardcoded assumptions. Seems to be working for the site
as it is now, but may definitely need further ugly hacks in the future.
Magnus Hagander [Fri, 13 Oct 2017 12:08:21 +0000 (14:08 +0200)]
Enforce lowercase email addresses in more places
We don't want two different accounts to exist with the same email
address only differing in case. This had already happened for a few
which have been manually fixed, since it turns out we only enforced the
rule on new account creation, not when accounts changed email address or
when they were created using oauth. Also add database level constraints to
make sure this cannot happen again if some codepath is missed.
Magnus Hagander [Fri, 13 Oct 2017 11:10:23 +0000 (13:10 +0200)]
Spider fedora versions up to 30
No need for us to update this script on every new Fedora release. If we
don't have packages for them, they just won't be found.
Magnus Hagander [Fri, 13 Oct 2017 10:45:38 +0000 (12:45 +0200)]
Fix suggested initialization command on RPMs
As of 10, the name of the script has changed from postgresql<nn>-setup
to postgresql-<nn>-setup.
Magnus Hagander [Fri, 13 Oct 2017 09:15:51 +0000 (11:15 +0200)]
Don't crash when .git/refs/heads/master doesn't exist
This happens after a git gc which moves this into packed-refs. So when
this happens, look in packed-refs. If packed-refs also cannot be found,
just return a made up value instead of crashing.
Magnus Hagander [Fri, 13 Oct 2017 09:15:14 +0000 (11:15 +0200)]
Import jquery-ui theme images
We already had the basic theme imported, just forgot the images.
Magnus Hagander [Fri, 13 Oct 2017 08:07:20 +0000 (10:07 +0200)]
Consistently load jquery from our own copy
Also consistently load the same version of jquery, so browsers only have
to cache one.
Magnus Hagander [Mon, 9 Oct 2017 10:50:28 +0000 (12:50 +0200)]
Automate supported versions in yum download scripts
We do this by always spidering every repo rpm available (since the ftp
server doesn't know about supported versions), and then filtering which
versions are shown in the dropdown instead. Given the small number of
versions of either kind, this doesn't make a material difference in the
size of the files anyway.
Dave Page [Fri, 6 Oct 2017 08:33:29 +0000 (09:33 +0100)]
Update supported versions.
Magnus Hagander [Fri, 6 Oct 2017 07:44:08 +0000 (09:44 +0200)]
Sort versions as numbers, not strings
Javascript by default sorts numbers as strings, go figure. So instead,
properly sort them as number, which makes v10 show up at the top as it
should be.
Magnus Hagander [Fri, 6 Oct 2017 07:36:55 +0000 (09:36 +0200)]
Need to spider v10 yum files
Jonathan S. Katz [Thu, 5 Oct 2017 15:50:28 +0000 (11:50 -0400)]
Ensure all references to PostgreSQL icon in press kit are to PNG
At some point, the PostgreSQL icon used in the press kit changed
from being a JPG to a PNG, so this change ensures that the PNG
is used. This was also applied to previous press kits as the
JPG icon is missing.
Jonathan S. Katz [Thu, 5 Oct 2017 14:29:11 +0000 (10:29 -0400)]
Edits to the Portuguese translation for PG10 release
Dave Page [Thu, 5 Oct 2017 13:44:33 +0000 (14:44 +0100)]
Add presskit link to the callout.
Dave Page [Thu, 5 Oct 2017 13:07:53 +0000 (14:07 +0100)]
Update download platform support.
Dave Page [Thu, 5 Oct 2017 13:00:27 +0000 (14:00 +0100)]
Release 10.0
Jonathan S. Katz [Fri, 29 Sep 2017 17:40:20 +0000 (13:40 -0400)]
Update PostgreSQL 10 RC 1 download URL.
Update the PostgreSQL 10 RC 1 download URL to point to the snapshot
area for downloads, as it contains more directions for how to
download the release candidate.
Jonathan S. Katz [Wed, 27 Sep 2017 15:55:00 +0000 (11:55 -0400)]
Added regional press contact for Vietnam
Magnus Hagander [Wed, 27 Sep 2017 10:01:45 +0000 (12:01 +0200)]
Split out noreply sender address to separate config parameter
We want to use the noreply@ email address when sending out notifications
to addresses that have yet to be verified, since we can just ignore
bounces to those.
Jonathan S. Katz [Tue, 26 Sep 2017 10:11:10 +0000 (12:11 +0200)]
Add v10 to feature matrix
Jonathan S. Katz [Tue, 26 Sep 2017 03:49:31 +0000 (23:49 -0400)]
Added regional contacts for Myanmar, Phiilippines, and Thailand
Stephen Frost [Thu, 21 Sep 2017 13:12:24 +0000 (09:12 -0400)]
v10 RC1 released
Jonathan S. Katz [Mon, 18 Sep 2017 18:11:54 +0000 (14:11 -0400)]
Create "Europe, the Middle East, and Africa" group on Press Contact page.
The press contact group for "Europe and Africa" was relabeled and made
into "Europe, the Middle East, and Africa" to follow common conventions.
Additionally, the contact info for Israel was moved into this group.
Magnus Hagander [Mon, 18 Sep 2017 16:32:49 +0000 (18:32 +0200)]
Don't require first and last name fields in OAuth signup
I had fixed the OAuth process to deal with this case, but failed to
cover the actual new account creation part which still required it. With
this fix, we allow a signup without a name. If the user wishes to set a
full name on the account it can be done on the profile page for the
user, but it's possible to proceed to access restricted resources
without doing it.
Reported by @Smylers2 on twitter, relayed by @TokenScandi
Magnus Hagander [Mon, 18 Sep 2017 16:31:48 +0000 (18:31 +0200)]
Don't crash on completely empty github names
Sometimes you get a name but it's NULL, sometimes you don't get one. Yay
for consistency, but handle both cases.
Magnus Hagander [Sat, 16 Sep 2017 11:34:55 +0000 (13:34 +0200)]
Maintain redirection URL across oauth signup
Previously when signing up for a new account in the middle of an
authentication process, the final redirection URL was lost and the user
was sent back to the /account/ page. Instead, we now redirect to the
proper URL (for sending back to the community auth client site) if it's
available in the session, both for successful signup and for
canceled logins.
Magnus Hagander [Sat, 16 Sep 2017 11:22:58 +0000 (13:22 +0200)]
Properly pass next value across failed password attempts
In the event of a failed password attempt, we'd loose the "next url"
part in community auth, so once the correct password was entered an
error message about unknown redirect would show up.
Jonathan S. Katz [Wed, 13 Sep 2017 18:57:02 +0000 (14:57 -0400)]
Added press contact for Israel
Peter Eisentraut [Wed, 6 Sep 2017 18:12:25 +0000 (11:12 -0700)]
Apply table style also to informaltable elements
Discussion:
https://www.postgresql.org/message-id/flat/
20170728120244.1449.87477%40wrigleys.postgresql.org
Magnus Hagander [Mon, 4 Sep 2017 10:31:08 +0000 (12:31 +0200)]
Don't fail on creating new oauth accounts with no first/last name
If no first or last name is given, fall back to the method of using the
email address to suggest only.
In passing, split out the references to the session in own variables to
make the code a lot easier to read.
Stephen Frost [Sun, 3 Sep 2017 22:59:45 +0000 (18:59 -0400)]
Update roadmap
August is done, next releases are November, add in May 2018 release
target date.
Stephen Frost [Thu, 31 Aug 2017 15:43:21 +0000 (11:43 -0400)]
Fix release announcement link for beta4 on beta page
Stephen Frost [Thu, 31 Aug 2017 14:48:28 +0000 (10:48 -0400)]
10 beta 4 and new releases
Magnus Hagander [Thu, 31 Aug 2017 07:58:55 +0000 (09:58 +0200)]
Add nicer exception handling for OAuth logins
Instead of throwing Internal Server Error at the user, throw a custom
exception that can actually give a slightly less useless error message.
Magnus Hagander [Thu, 31 Aug 2017 07:56:38 +0000 (09:56 +0200)]
Make full name optional in all authentication providers
We haven't seen crashes for other providers, but that's no reason not to
fix..
Magnus Hagander [Thu, 31 Aug 2017 07:36:29 +0000 (09:36 +0200)]
Don't crash when oauth provider does not include state
This should normally never happen, and should cause an error. But it
should cause an error saying "invalid state received", not an error
saying kaboom.
Magnus Hagander [Thu, 31 Aug 2017 07:25:04 +0000 (09:25 +0200)]
Further fixes for Github names with just one name
Not only can they be without names, they can be a one word name which
would cause a different crash. Again, allow that through and let the
user make manual adjustments if they wish.
Magnus Hagander [Thu, 31 Aug 2017 07:22:32 +0000 (09:22 +0200)]
Support login with github profiles that have no full name
We only really need the email, the rest the user can just fill out
manually. So instead of crashing, just leave them empty.
Magnus Hagander [Tue, 29 Aug 2017 08:03:02 +0000 (10:03 +0200)]
Update beta information bage with beta3
This was missed in the latest beta push.
Report by Laurence Parry
Magnus Hagander [Mon, 28 Aug 2017 15:16:26 +0000 (17:16 +0200)]
Give better error message when restricting information in oauth login
We need access to email, firstname and lastname, which is also what we
ask for. If the user forcibly restricts access to that, give a
reasonable error message instead of crashing.
Magnus Hagander [Mon, 28 Aug 2017 15:11:29 +0000 (17:11 +0200)]
Generate suggested oauth usernames in unicode
They won't work in the end, so a better fix is probably a good idea, but
this at least turns it into a useful error.
Magnus Hagander [Mon, 28 Aug 2017 15:07:58 +0000 (17:07 +0200)]
Don't crash when unauthenticated users try to change password
Magnus Hagander [Mon, 28 Aug 2017 15:05:43 +0000 (17:05 +0200)]
Make sessioninfo script work when user is not logged in
Magnus Hagander [Mon, 28 Aug 2017 15:04:10 +0000 (17:04 +0200)]
Copy over sessioninfo utility from postgresqleu site
Magnus Hagander [Mon, 28 Aug 2017 14:28:03 +0000 (16:28 +0200)]
Implement support for Oauth2 based login integrations
This creates Google, Github, Microsoft and Facebook login integrations.
Other providers can also be added if needed. Accounts still need to be
created in the community auth system, and will be automatically created
on first login, when the user also gets to pick a username. Once an
account exists, it will be matched on email address from the external
systems.
No methods are enabled by default, as they all require encryption keys
and identities configured in local_settings.py.
Review by Stephen Frost, Jonathan Katz and Daniel Gustafsson.