1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Commit Graph

488 Commits

Author SHA1 Message Date
Matt Griswold
de92f823d4 Default settings tweaks (#1103)
* remove survey notifications

* tweak default settings for WEBAUTHN, SESSION_COOKIE_DOMAIN and OIDC_RSA_PRIVATE_KEY_ACTIVE_PATH

Co-authored-by: Stefan Pratter <stefan@20c.com>
2022-01-12 12:33:32 -06:00
Matt Griswold
677f94f550 Support 202111 (#1101)
* Block registering private ASN ranges

* Add a continental region field for facilities #1007

* Incorrect order of search results #232

* Allow users to upload a small logo to their record #346

* Sponsor badge CSS and text translation issues #453

* IXP and Facility summary #18

* Add sales email and phone contact to ix object #949

* Increase timeout timer for IX-F JSON importer to 30s #962

* IX-F manually triggered import bugs #1054

* remove survey notifications

* IX-F importer: manual add followed by IX-F prompted add can result in "The server rejected your data" #807

* performance fix for net view

* api documentation generate broken #956

* fix poc set missing from net view

* Auto focus cursor on search field on main website #695

* PeeringDB website has a poor choice of line-breaks for IPv6 addresses. #748

* Delete childless org objects #838

* linting

* poetry lock

* re-add mistakingly dropped translation to email template

* fix template variables

* regen docs

* regen api docs

* add u2f api

* fix merge cruft

* fido u2f webauthn first steps

* dont need this

* typo

* first ux steps for security key management, u2f views

* u2f auth

* linting

* Cascade delete when performed by superuser in django-admin #735

* security key passwordless login

* reset webauthn migrations

* security key 2fa

* linting

* ux cleanup

* cleanup

* Add IXP to AS record / dropdown limited #469

* ignore orgs that have pre-dated or finished sponsorships attached

* split out to django_security_keys

* default to 90 days

* make URL required for new objects #374

* move CONN_MAX_AGE to proper location and expose as env var (#1060)

* Error message for invalid password on email change

* Registering a new facility or exchange organization is broken #1062

* Creating a facility that matches the name of a soft-deleted facility will cause the entry to bypass the verification queue #901

* irr source validator doesn't allow for hyphens in source #921

* split out javascript

* split out js

* Clicking "Add" to add a user api-key without providing a name for the key raises Internal Error #1033

* remove security key admin views

* global stats don't show up at login screen #284

* Possible for "pending" exchange to have "deleted" ixlan (#1077)

* webauthn finalizations

* oidc support for oauth provider #1070

* Revert "Merge branch 'gh_1070' into 'support_202111'"

* remove unused dev mounts

* linting

* add django-security-key and relock poetry

* re-add imports removed through linting

* docs regen

* oauth toolkit pinned to 1.6.1
django-security-keys pinned to 1.0.1

* remove debug message

* linting

* linting

Co-authored-by: Stefan Pratter <stefan@20c.com>
Co-authored-by: David Poarch <dpoarch@20c.com>
2022-01-11 08:56:47 -06:00
jlamanna
a5abe0e78f Nanog 83 Hackathon improvements to the PeeringDB Website (#1083)
* Nanog 83 Hackathon improvements to the PeeringDB Website

- If a user inputs only numbers, search for ASN only
- If a user inputs what looks like a IPv4 or IPv6 address, search Network IP addresses only
- Use direct SQL in the above instances rather than Haystack fuzzy matching, though search fields for ASN and ipaddr[46] were added to the Haystack search index

* Revert change to prepare_term

* remove print

* run black

* add ipv4 and 6 search tests

Co-authored-by: Jeff Kala <jeff.l.kala@gmail.com>
2022-01-10 07:40:26 -06:00
Carlos Aguado
1c314cdf1f Enable OIDC support (#1070) (#1098)
Enable OIDC and RS256 JWT signing from django-oauth-toolkit with a
single RSA key. Key rotation is not yet enabled and will be introduced
on the first rotation.

The JWT signed token contains the previous claims exposed in profile/v1
endpoint but compatible with the OIDC standard claims.

https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
2022-01-10 07:34:16 -06:00
Leo Vegoda
47c6a69926 Update feature_request.md
Added a question about formal software design
2021-12-02 12:45:28 -08:00
Matt Griswold
83461deb58 prep 2.32.0-beta1 2.32.0-beta1 2021-11-12 17:46:36 +00:00
Matt Griswold
c9108741cf fix atomicity (#1087)
* remove survey notifications

* fixes #1086 atomicity issues

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-11-12 11:16:25 -06:00
Matt Griswold
276e40048c prep 2.32.0-beta 2.32.0-beta 2021-11-09 16:52:12 +00:00
Matt Griswold
8ef76dc5ab Support 202110 (#1085)
* Block registering private ASN ranges

* Add a continental region field for facilities #1007

* Incorrect order of search results #232

* Allow users to upload a small logo to their record #346

* Sponsor badge CSS and text translation issues #453

* IXP and Facility summary #18

* Add sales email and phone contact to ix object #949

* Increase timeout timer for IX-F JSON importer to 30s #962

* IX-F manually triggered import bugs #1054

* remove survey notifications

* IX-F importer: manual add followed by IX-F prompted add can result in "The server rejected your data" #807

* performance fix for net view

* api documentation generate broken #956

* fix poc set missing from net view

* Auto focus cursor on search field on main website #695

* PeeringDB website has a poor choice of line-breaks for IPv6 addresses. #748

* Delete childless org objects #838

* linting

* poetry lock

* re-add mistakingly dropped translation to email template

* fix template variables

* regen docs

* regen api docs

* fix merge cruft

* django-peeringdb to 2.11 and poetry relock

* linting

* comment out django-peeringdb volume mount

* add missing declaration

Co-authored-by: Stefan Pratter <stefan@20c.com>
Co-authored-by: David Poarch <dpoarch@20c.com>
2021-11-09 09:47:38 -06:00
Matt Griswold
1eda45ffeb ignore new ixf field (#1082)
* ignore new ixf field

* pre-commit

* gh actions linting fix
2021-10-30 10:20:04 -05:00
Matt Griswold
3b78cd6270 Version 2.31.1 2.31.1 2021-10-21 17:59:59 +00:00
Matt Griswold
423552a20a Fix undefined sponsor (#1074)
* fix undefined sponsor badges

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-10-21 12:38:35 -05:00
Matt Griswold
74ead77a1c Version 2.31.0 2.31.0 2021-10-20 01:47:23 +00:00
Matt Griswold
4f1920d0de prep version beta4 2.31.0-beta4 2021-10-19 11:37:18 -05:00
Matt Griswold
0348d9fc28 Support 202109 fixes (#1071)
* remove survey notifications

* humanize file size error when nginx triggers a 413 response (#346)

* linting

* add max file size note to logo help tooltip

* fix issue with advanced search no longer show entries for non-sponsor organizations (#453)

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-10-19 11:36:30 -05:00
Matt Griswold
c21130eed9 Docs 202109 (#1067)
* module docstrings

* db schema graph

* dev docs first pass

* dev docs pass 2

* add generated notification to top of generated docs files

* linting

* regen docs

Co-authored-by: Stefan Pratter <stefan@20c.com>
Co-authored-by: Sunshine Buchholz <sunshine@20c.com>
2021-10-15 03:25:38 -05:00
Matt Griswold
48a3a899f6 prep version 2.31.0-beta3 2.31.0-beta3 2021-10-15 01:30:48 -05:00
Matt Griswold
8361e18ed4 346 fixes 2 (#1069)
* remove survey notifications

* remove old logo file when a new logo file is uploaded #346
loading-shim for upload

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-10-15 01:30:04 -05:00
Matt Griswold
f5a80e2009 prep 2.31.0-beta2 2.31.0-beta2 2021-10-14 02:04:20 -05:00
Matt Griswold
f1e2e8e05d 346 fixes (#1066)
* org logo now uploads to separate directory than sponsorship logos and normalizes file name to org-{id} #346

* validation fixes for logo upload (#346)

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-10-14 02:03:10 -05:00
Matt Griswold
0c4ff0b2de Support 202109 (#1064)
* Block registering private ASN ranges

* Add a continental region field for facilities #1007

* Incorrect order of search results #232

* Allow users to upload a small logo to their record #346

* Sponsor badge CSS and text translation issues #453

* IXP and Facility summary #18

* poetry relock

* linting

* add libgcc

* lint

* bump version to 2.31.0-beta

Co-authored-by: Stefan Pratter <stefan@20c.com>
Co-authored-by: David Poarch <dpoarch@20c.com>
2.31.0-beta
2021-10-12 11:05:25 -05:00
Matt Griswold
5d1f1c455d Version 2.30.3 2.30.3 2021-10-11 12:10:52 -05:00
Matt Griswold
dbaffdc2d8 remove survey notifications (#1063)
Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-10-11 12:09:09 -05:00
Matt Griswold
59f292fbb9 Version 2.30.2 2.30.2 2021-09-23 13:32:30 -05:00
Matt Griswold
fadbcc03c9 move notification message for survey to banner (#1058)
Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-09-23 13:32:17 -05:00
Matt Griswold
fe30ed54cd Version 2.30.1 2.30.1 2021-09-23 00:43:08 -05:00
S. R. Wadleigh
6fe5e6c46d Survey 20210923 (#1056)
* add 2021 october 8th survey text and link to the from page index below the register link

* trim leading space
2021-09-23 00:42:24 -05:00
Matt Griswold
e32c595f76 Version 2.30.0 2.30.0 2021-09-21 20:00:24 -05:00
Matt Griswold
d7436070db prep 2.30.0-beta 2.30.0-beta 2021-09-14 18:32:55 +00:00
Matt Griswold
636f37eb12 Support 202108 (#1051)
* add OPERATIONS_EMAIL setting

* fixes #1019: redundant saves to deleted netixlans during ix-f import

* private pocs are no longer valid (#944)

* poetry relock (handleref update)

* fixes #1032: __id api filter not working

* Additional self-selection fields for Facilities #800

* advanced search fields for available voltage, property and diverse serving substations (#1016)

* When network sets netixlan speed to 1200000 only 1T is shown instead of 1.2T ... sometimes #500

* add search-data

* comment out mount points for api-cache, search-data, django-peeringdb

* poetry relock (django-peeringdb 2.9.0)

* linting

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-09-14 08:59:09 -05:00
Matt Griswold
90f9a2803e Version 2.29.1 2.29.1 2021-08-26 18:30:36 +00:00
Matt Griswold
1addb7aae3 fix signals not being imported (#1037)
* fix signals not being imported

* move utility funciton out of signals
remove signals import from migrations

* note for signals import to be not removed

* better explanation

* fix user auto verify test

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-08-26 13:23:33 -05:00
Matt Griswold
5abfb87ee1 Version 2.29.0 2.29.0 2021-08-25 03:09:12 +00:00
Matt Griswold
984793a3cb Fix fallback captcha deps (#1029)
* test for signup page loading and captcha fallback loading

* update deps for captcha

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-08-20 15:17:08 -05:00
Matt Griswold
1567fcb1e5 prep v2.29.0-beta2 2.29.0-beta2 2021-08-20 12:37:34 +00:00
Matt Griswold
18d165fe6e v2.29-beta 2021-08-20 12:35:48 +00:00
Matt Griswold
36e091b237 update gitignore 2021-08-20 12:35:48 +00:00
Matt Griswold
3569428b07 add OPERATIONS_EMAIL setting (#1028)
Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-08-20 07:32:52 -05:00
Matt Griswold
77282c4b66 Prep 2.29 (#1024)
* django3, py39, lgtm, linting (#715)

* IX-F Importer: ticket status change when posting re-occuring conflict to existing resolved ticket (#920)

* fix recaptcha requirement for user creation in django-admin (#715)

* IX-F Importer: fix command output buffering #967

* Drop dot1q_support field #903

* fix test (#967)

* Add name, city, country to ixfac (GET operation) #166

* additional tests fir #166

* Allow IXP to trigger ix-f importer for their exchange #779

* add docker compose for dev

* add selinux labels for mountpoints

* fixes #1013: The process to permanently remove old soft-deleted network contacts pdb_delete_pocs raises a false ProtectedAction

* fix api test

* relock poetry

* remove django_namespace_perms from installed apps

* fix user permissios ui

* remove remaining references to django namespace perms

* linting

* copy tox.ini

* comment flake8 check until we figure out why it ignores configs from tox.ini

* black format

* poetry lock

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-08-18 08:21:22 -05:00
Matt Griswold
63aab93f04 fix issue with update_index not respecting the --age parameter (#1010)
* fix issue with update_index not respecting the --age parameter

* fix ghactions poetry cache

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-07-24 21:46:18 -05:00
Matt Griswold
ba2df76b5f prep version 2.28 2.28.0 2021-07-20 16:15:22 +00:00
Matt Griswold
d885b5e902 prep 2.28.0-beta 2.28.0-beta 2021-07-14 03:22:26 +00:00
Matt Griswold
59b332e9a3 move whoosh index default to api-cache 2021-07-13 22:05:57 -05:00
Matt Griswold
3dd72435ca Fix 23 search result order (#1002)
* fix search results listed in wrong order (#23)

* no longer need to call highlight

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-07-13 08:21:43 -05:00
Matt Griswold
5147028bee clean up / format / poetry (#1000)
* stub in poetry for pipenv

* re-add tester image

* add pre-commit / formatting

* fix ghactions

* revert test data whitespace, exclude tests/data

* revert ws

* decruft, rm tox/pipenv

* install dev packages for base image

* add lgtm config to force to py3
2021-07-10 10:12:35 -05:00
Matt Griswold
c458173667 search results page (#999)
finalize indexing

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-07-08 21:00:23 -05:00
Matt Griswold
7c3d160dec Support 202106 (#994)
* fixes #965: intermittent bug during consolidation of notifications

* fixes #863: better visibility for input validation errors

* fixes #375: re-evaluate affiliation requests on email change

* fixes #741: remove data quality validation for superusers

* fixes #587: customizable pagination in django admin

* fixes #923: Prevent deletion of a last technical contact if there is an existing netixlan object

* better search #23 (first pass)

* black format

* haystack test config to run_tests.py
remove old django_init.py test settings

* black format

* haystack test config fixes

* #23 better search (pt.2)

* rate limit distance queries (#23)
rate limiting based on query filters

* settings controlled blocking of distance filter for unauthenticated / unverified users (#23)

* fix distance filter throttling with api key auth (#23)

* fix anon user access check on distance queries

* search index and performance tweaks

* fix org_id not set in search results

* org id to int

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-07-07 17:57:04 -05:00
Matt Griswold
9f74fb8a11 Version 2.27.1 2.27.1 2021-05-26 05:35:00 +00:00
Matt Griswold
de413ef1f6 advanced search fixes (#984)
* fix advanced search error when not logged in

* fix error with data/my_organizations if user is not logged in

* fix 500 error when viewing advanced search as a user that is not affiliated with any org

* tests for adv search init and anonymous data/my_organizations request

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-05-26 00:33:55 -05:00
Matt Griswold
207ad371c0 Version 2.27.0 2.27.0 2021-05-25 19:54:04 +00:00