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

505 Commits

Author SHA1 Message Date
Matt Griswold
e85330c8a0 Support 202203 fixes (#1148)
* remove survey notifications

* fixing old reference of IXF_IMPORTER_DAYS_UNTIL_TICKET through EnvironmentSettings, this setting is no longer controlled through that and should come straight from settings

* fix session auth not setting x-auth-id header (#1120)
fix basic auth not setting x-auth-id header on success (#1120)
fix api key auth only setting prefix in x-auth-id header (#1120)
fix x-auth-id header not being cleared between requests (#1120)

* fix issue with rest throttling breaking api-cache generation (#1146)

* add caching for get_permission_holder_from_request - fixes perfomance issues in #1147

* fix intermediate issue with api_cache rest throttle tests

* sanitize cache key names for state normalization (#1079)
each state normalization lookup moved into its own transaction so errors dont cause us to lose already obtained data (#1079)
write cache regardess of --commit on or off (#1079)
add a sanity check for running non-committal mode without --limit (#1079)

* fix issue with ip block rate limiting if x-forwarded-for is set (#1126)

* better handling of melissa timeouts through retrying (#1079)
fix state normalization cache timeout to have no expiry (#1079)
normalization command will display validation errors at the end and exit with a return code if there are any (#1079)

* automatically apply address field normalization for `state` (#1079)

* additional tests

* only do a sanity check for --limit if no specific object is targeted

* linting

Co-authored-by: Stefan Pratter <stefan@20c.com>
2022-04-19 11:45:02 -05:00
Matt Griswold
3dff29075d prep 2.36.0-beta 2.36.0-beta 2022-04-12 15:46:23 -05:00
Matt Griswold
505760aa8d Support 202203 (#1144)
* Do not show objects in status "pending" on the UI #784

* Fix peeringdb.js bug introduced in #784

* 500 Error during login for 2FA enabled accounts with unverified email address #996

* Django-Admin: adding a network with existing asn fails with internal error #1035

* Some command-line-tool executions are not logged #1119

* Ops: API throttling of repeated requests #1126

* Ops: response header X-Auth-ID to augment logging #1120

* Allow rate-limiting of melissa enabled api functionality. #1124

* State / Province normalization #1079

* Log melissa requests #1122

* remove debug messages

* bump django-handleref to 1.0.2

* Need consolidated app logs #845

* pin django peeringdb to 2.13 and relock poetry

* pin django-restframework-apikey to 2.1.0

* linting

* migrations

* docs regenerate

* docs

* linting

Co-authored-by: David Poarch <dpoarch@20c.com>
Co-authored-by: Stefan Pratter <stefan@20c.com>
2022-04-12 15:39:19 -05:00
Leo Vegoda
7f48bbc7e7 Replace API keys documentation with a pointer
Added these documents to peeringdb/docs in https://github.com/peeringdb/docs/pull/216

This commite removed the files from peeringdb/peeringdb and puts a pointer in the original file
2022-04-04 09:26:07 -07:00
Matt Griswold
598a6588de prep 2.35.0 2.35.0 2022-03-22 01:06:34 +00:00
Matt Griswold
701feb764e prep 2.35.0-beta1 2.35.0-beta1 2022-03-17 22:40:48 +00:00
Matt Griswold
c7dc2ea2aa Support 202202 patch 1 (#1129)
* remove survey notifications

* fixing old reference of IXF_IMPORTER_DAYS_UNTIL_TICKET through EnvironmentSettings, this setting is no longer controlled through that and should come straight from settings

* Bad API keys need to return 401 just like a bad user/pass. Presently they return 200. #1117

Co-authored-by: Stefan Pratter <stefan@20c.com>
Co-authored-by: David Poarch <dpoarch@20c.com>
2022-03-17 17:38:50 -05:00
Matt Griswold
f212a79b43 prep 2.35.0-beta 2.35.0-beta 2022-03-08 13:32:54 +00:00
Matt Griswold
57a4175c00 Support 202202 (#1125)
* New Field "Health Check" #512

* Add status_dashboard to fields #512

* RS Peer Checkbox also visible on IX Site #727

* Add "Management" search field to Advanced Search of Exchanges #506

* wrap correctly on mobile #881

* missing delete button for user #653

* Removed cruft from IX view template #881

* To force or not to force www, that is a question #916

* add health check fields to entity creation forms (fac, ix, net) (#512)

* status_dashboard should accept null values #512

* Sort usergroup names in https://peeringdb.com/cp/peeringdb_server/userpermission/xxxxx numerically #656

* fix issue with deleted entities showing up in search results #1042

* 2FA Backup Tokens language doesn't seem correct #908

* linting

* poetry relock

* fix user permission save trying to create a user

* add status_dashboard to mock data

* docs

* add api doc regen to gen_docs call
fix issue with run_tests if BASE_URL env var is set

* fix generate_schema typo

* linting

Co-authored-by: David Poarch <dpoarch@20c.com>
Co-authored-by: Stefan Pratter <stefan@20c.com>
2022-03-08 07:27:45 -06:00
Matt Griswold
5200e79fec prep 2.34.0 2.34.0 2022-02-15 20:07:19 +00:00
Stefan Pratter
9f5daba77e Fix 1106 (#1114)
* Allow ops to set multiple origins for WEBAUTHN_ORIGIN through the env variable (#1106)
2022-02-15 08:50:13 -06:00
Matt Griswold
17847d671d prep 2.34.0-beta1 2.34.0-beta1 2022-02-10 12:20:51 +00:00
Matt Griswold
4bbe4f1d3d Beta fixes 202202 (#1112)
* remove survey notifications

* fixing old reference of IXF_IMPORTER_DAYS_UNTIL_TICKET through EnvironmentSettings, this setting is no longer controlled through that and should come straight from settings

* fix pdb_load_data ixlan.status error

Co-authored-by: Stefan Pratter <stefan@20c.com>
2022-02-10 06:17:26 -06:00
Matt Griswold
0078176aa9 prep 2.34.0-beta 2.34.0-beta 2022-02-08 19:16:53 +00:00
Matt Griswold
e2619a001f Support 202201 (#1111)
* remove survey notifications

* substantially rate limit unauthenticated /api/ queries to encourage authenticated queries #853

* move api throttle class configuration to settings (#853)

* #722 with a more generic validation approach

* Add organisations and registered users to "Global System Statistics" in footer #620

* poetry relock

* linting

* regen docs

* fix test data

Co-authored-by: Stefan Pratter <stefan@20c.com>
Co-authored-by: David Poarch <dpoarch@20c.com>
2022-02-08 13:14:27 -06:00
Matt Griswold
7fea18af92 prep 2.33.0 2.33.0 2022-01-18 21:49:20 -06:00
Matt Griswold
2d81d958e5 prep 2.33.0-beta1 2.33.0-beta1 2022-01-12 18:36:49 +00:00
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