Commit Graph

596 Commits

Author SHA1 Message Date
Stefan Pratter 5ca64797d9 linting 2023-03-14 20:15:44 +00:00
Stefan Pratter 35d4af7449 fix log message 2023-03-14 20:12:39 +00:00
Matt Griswold e860e20309 prep 2.45.0-beta 2.45.0-beta 2023-03-14 19:26:36 +00:00
Matt Griswold cf2bb9cd0c don't change UID for github actions 2023-03-14 19:15:34 +00:00
Matt Griswold f69e1f5787 format 2023-03-14 19:01:18 +00:00
Matt Griswold bb10d1429f revert mysql specific migration 2023-03-14 18:48:12 +00:00
Matt Griswold 0416e016b0 Merge branch 'master' into local-sync 2023-03-14 18:35:47 +00:00
Matt Griswold 6c8d43cc4f add new object type, fixes #1314 (#1346) 2023-03-14 10:33:43 +00:00
Matt Griswold b108e7a8e9 Update prefix limits (#1348)
* update default objects

* update prefix limits in defaults

* Revert "update prefix limits in defaults"

This reverts commit 2e8131aeb6.

* Revert "Revert "update prefix limits in defaults""

This reverts commit d8a71e185a.

* Revert "update default objects"

This reverts commit 741d37ff8d.
2023-03-14 01:24:09 +00:00
Matt Griswold 5641510139 update default objects (#1347) 2023-03-14 00:58:49 +00:00
Stefan Pratter 5b1d19528d better title tags #1281 (#1345)
It should be impossible to save an active entity under an entity that is marked as deleted. #389

Implement auto-removal of stale networks according to DOTF recommendations #1271

Rename Private Peering Facilities to Interconnection Facilities in the UI #749

poetry relock

linting
2023-03-13 18:22:22 +00:00
Daniel Van Allen ae41216263 Site Header: Add anonymous user language select (#1319)
Currently, users must log in before they can set a language preference
on PeeringDB. This change allows anonymous users to change the language
of any page without logging in, by setting the Django language cookie.
2023-03-13 18:22:08 +00:00
Matt Griswold df37bee6b4 poetry lock 2023-03-05 03:37:48 +00:00
Matt Griswold b8bffcb051 allow api_cache gen to specify depths, write to temp files 2023-03-04 04:08:09 +00:00
Matt Griswold ca05d11495 update pyproject 2023-03-03 02:50:35 +00:00
Matt Griswold f7f5cdb6d8 poetry lock 2023-03-03 02:49:34 +00:00
Matt Griswold 6762dfe4e5 add new object type, fixes #1314 2023-03-03 01:37:53 +00:00
Matt Griswold 2bfa2e4e45 update compose 2023-03-02 03:46:44 +00:00
Matt Griswold 6e7f6c4ea4 prep 2.44.0 2.44.0 2023-02-21 19:18:41 -06:00
Stefan Pratter 135845601c prep 2.44.0-beta 2.44.0-beta 2023-02-15 08:04:33 +00:00
Stefan Pratter 5eb925e319 Support 202301 (#1329)
* fix next redirect when using U2F 2FA auth (#1191)

* Added self identifier to API

* fix migrations hierarchy after merging in previous support branch

* campus object

Co-authored-by: Stefan Pratter <stefan@20c.com>

* fix out of bound error message
add city / country to campus view

* fix tests

* relock poetry

* linting

* linting

* fix docs regen

* regen docs

* linting

* refactor self entity view to support carrier and campus object types and also make it easier to support additional object types in the future

* remove debug message

---------

Co-authored-by: Gajanan Patil <dipaksavaliya.python@gmail.com>
2023-02-15 07:55:01 +00:00
Matt Griswold a785218ab9 prep 2.43.1 2.43.1 2023-02-06 12:01:00 -06:00
Stefan Pratter 12dd202c95 Fix issues with carrier-facility approval (#1325)
* fix issues with carrierfac approval/rejection process

* linting

* linting
2023-02-06 19:51:11 +02:00
Matt Griswold cd79f8106c prep 2.43.0 2.43.0 2023-01-24 05:58:10 -06:00
Stefan Pratter a54be10437 pin django-two-factor-auth to 1.14 to avoid compatibility issues (#1310) 2023-01-24 05:30:34 -06:00
Matt Griswold b1c1cc0694 prep 2.43.0-beta 2.43.0-beta 2023-01-18 10:43:56 -06:00
Stefan Pratter a0f1970fec Support 202211 (#1304)
* Carrier object implementation #909

* API keys: disabling of user account by a PeeringDB admin does not disable access via a User API key. Also no disable mech, only revoke. #1140

* Ops: django needs lightweight healthcheck route that confirms database connectivity #1284

* Ops: various indexes are needed #1285

* API requests with invalid Authentication headers should notify users in some way. #1220

* Allow user to change account username #1130

* UX to remove carriers from facilities more inline the other similar UX

* more UX fixes for removing carriers from facilities

* Cache hints are needed for optimal CDN use #970

* fixes Commandline tool "Run command" button gone #1278

* RIR status gets deleted when changes are made to the network #1279

* Improve MTU field #658

* CSRF cookie not set error from email confirmation view #1296

* expose CSP_CONNECT_SRC

* fix confirm email path checking in session middleware

* Ops: Emails to OPERATIONS_EMAIL need to be rate-limited #1282

* add website field to carrier ux

* website field on carrier optional with org fallback

* linting

* add *.google-analytics.com to CSP_CONNECT_SRC

* poetry relock

* fix issues with confirm-email reverse during session creation validation

* fix tests

* fix tests

* pin django-peeringdb to support_202211

* linting

* django ratelimit to <4

* regen docs

* fix automated net stats to only include networks with status `ok` #1283

* linting

* poetry lock

Co-authored-by: Matt Griswold <grizz@20c.com>
2023-01-18 10:32:46 -06:00
Matt Griswold 3dff19f9b5 add ghcr container build (#1274) 2023-01-18 10:16:14 -06:00
Matt Griswold 4c5312fcc0 fix non www url (#1305)
* postgres compose volume to named volume

* update unused non www URLs, #1292

* black format
2023-01-18 10:12:23 -06:00
Todd Crane dd3b41f05e Add canonical url link tag (#1211) (#1215)
- Add canonical url link tag
- hardcode www.peeringdb.com as the subdomain for link tags

Signed-off-by: Todd J Crane <todd.crane@simeonnetworks.com>
2023-01-18 10:09:59 -06:00
Leo Vegoda d9cd8fe5af Create contributing.md (#1289)
Add a contributing.md file that points new developers towards developer documentation
2023-01-18 10:03:07 -06:00
Matt Griswold 355fff4292 prep 2.42.0 2.42.0 2022-11-15 12:34:50 -06:00
Matt Griswold e81ce506b5 prep 2.42.0-beta 2.42.0-beta 2022-11-08 11:33:59 -06:00
Stefan Pratter 2e8788b595 Support 202210 (#1286)
* Allow REALPEER to overwrite GHOSTPEER netixlan entry, if asn and IPv6/v4 addresses matches the IX-F Members Export information #983

* Lightweight user notification mechanism #758

* do not allow affiliation with a deleted organisation #953

* Improve readability when users have special permissions #659

* fix advanced search export when api-cache exist and no filters were supplied #1153

* Ops: Throttle strings with "Response size" should be renamed "Repeated request" #1168

* allow ixlan prefix to be changed / deleted regardless of existence of netixlans in the address space #924

* linting

* poetry relock

* remove debug code

* linting

* fixed Reset IX-F suggestions link non-functional #1253

* solved UI shows own email when viewing affiliation requests for an organization #1250

* Adjust "Add Facility" menu to include newly defined fields #1091

* Footer "Global System Statistics" should be cached within django instance, not updated with every page load #1283

* linting

* django-handleref to 1.1.0 and relock poetry

* GLOBAL_STATS_CACHE_DURATION default to 900 seconds

* remove vscode and idea

* remove Ctl/dev/docker-compose.debug.yml

* remove unsused variable

* rename STATS to __STATS

* linting

* regen docs
2022-11-08 11:25:32 -06:00
Stefan Pratter 8861320ad5 Google analytics (#1287)
* google analytics

* linting
2022-11-08 13:42:17 +02:00
Matt Griswold af37642762 update tests to mysql8 (#1262) 2022-11-04 01:04:47 -05:00
Matt Griswold 0158a35308 prep 2.41.1 2.41.1 2022-10-26 10:42:50 -05:00
Stefan Pratter 75817dea05 Add missing allowed sources for scripts (#1276)
* add missing allowed sources to content policy
change redoc cdn to redoc.ly

* set_option for CSP settings

* linting
2022-10-26 10:42:04 -05:00
Matt Griswold cf0bb22a97 prep 2.41.0 2.41.0 2022-10-25 22:48:49 -05:00
Matt Griswold ec6667a5aa prep 2.41.0-beta2 2.41.0-beta2 2022-10-18 10:54:29 -05:00
Stefan Pratter c341982422 fix issue with ix-f feeds that have vlan_list or if_list set to null #1244 (#1269) 2022-10-18 08:53:53 -05:00
Matt Griswold 10bb2ab31f prep 2.41.0-beta1 2.41.0-beta1 2022-10-13 10:20:42 -05:00
Stefan Pratter 2b9afb7fc6 Oauth bug fix (#1267)
* Oauth Bug fix to do a partial match on the URL

* OAuth2 fixes

* linting

Co-authored-by: Prithvi Nath Manikonda <manikop@amazon.com>
2022-10-13 10:18:54 -05:00
Stefan Pratter fcd52859dc move showdown map file to correct directory (#1265) 2022-10-13 08:16:25 -05:00
Matt Griswold 8e4c05e161 prep 2.41.0-beta 2.41.0-beta 2022-10-11 08:18:10 -05:00
prithvimanikonda 7a02f3275b Introduce a separate OAuth Session Cookie (#1208)
* Enforce Session Timeouts

* Make Oauth cookie setting configurable

* Run Isort on views.py

Co-authored-by: Prithvi Nath Manikonda <manikop@amazon.com>
2022-10-11 07:47:54 -05:00
prithvimanikonda e2ff9ed8f8 Set secure header (#1242)
* Use set options to set settings for secure header

Co-authored-by: Prithvi Nath Manikonda <manikop@amazon.com>
2022-10-11 07:46:49 -05:00
Stefan Pratter 2ee1220c58 Support 202209 (#1259)
* Add export tool to https://peeringdb.com/cp/peeringdb_server #586

* IX-F importer fails on nulled ipv4 / ipv6 properties in vlan_list entries #1244

* Adding a POC must require an email address or phone number #1044

* Selenium tests

* ping django-peeringdb and rdap and poetry relock

* linting

* linting

* remove selenium tests cruft

* comment out django-peeringdb and search data mounts

* regen docs
2022-10-11 07:45:07 -05:00
Matt Griswold 5bfe0d7599 Add codeql.yml (#1255)
* Create codeql.yml

* update weekly time
2022-10-07 07:36:39 -05:00
Matt Griswold 2fdf4b4f97 add missing map files for debugging (#1256) 2022-10-07 07:32:32 -05:00