* 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>
* 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>
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
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
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
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>