-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ref #575 - Add new configuration settings for set validation
- Loading branch information
Showing
8 changed files
with
193 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
============================ | ||
Release notes for IRRd 4.3.0 | ||
============================ | ||
|
||
* removal of compatibility.permit_non_hierarchical_as_set_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
from irrd.vendor.dotted.collection import DottedDict | ||
from irrd.rpsl.rpsl_objects import OBJECT_CLASS_MAPPING, RPSLSet | ||
|
||
# Note that sources are checked separately, | ||
# and 'access_lists' is always permitted | ||
KNOWN_CONFIG_KEYS = DottedDict({ | ||
'database_url': {}, | ||
'database_readonly': {}, | ||
'redis_url': {}, | ||
'piddir': {}, | ||
'user': {}, | ||
'group': {}, | ||
'server': { | ||
'http': { | ||
'interface': {}, | ||
'port': {}, | ||
'status_access_list': {}, | ||
'workers': {}, | ||
'forwarded_allowed_ips': {}, | ||
}, | ||
'whois': { | ||
'interface': {}, | ||
'port': {}, | ||
'access_list': {}, | ||
'max_connections': {}, | ||
}, | ||
}, | ||
'email': { | ||
'from': {}, | ||
'footer': {}, | ||
'smtp': {}, | ||
'recipient_override': {}, | ||
'notification_header': {}, | ||
}, | ||
'auth': { | ||
'override_password': {}, | ||
'authenticate_related_mntners': {}, | ||
'gnupg_keyring': {}, | ||
'set_creation': { | ||
rpsl_object_class: {'prefix_required': {}, 'autnum_authentication': {}} | ||
for rpsl_object_class in [ | ||
set_object.rpsl_object_class | ||
for set_object in OBJECT_CLASS_MAPPING.values() | ||
if issubclass(set_object, RPSLSet) | ||
] + ['DEFAULT'] | ||
}, | ||
}, | ||
'rpki': { | ||
'roa_source': {}, | ||
'roa_import_timer': {}, | ||
'slurm_source': {}, | ||
'pseudo_irr_remarks': {}, | ||
'notify_invalid_enabled': {}, | ||
'notify_invalid_subject': {}, | ||
'notify_invalid_header': {}, | ||
}, | ||
'scopefilter': { | ||
'prefixes': {}, | ||
'asns': {}, | ||
}, | ||
'log': { | ||
'logfile_path': {}, | ||
'level': {}, | ||
'logging_config_path': {}, | ||
}, | ||
'sources_default': {}, | ||
'compatibility': { | ||
'inetnum_search_disabled': {}, | ||
'irrd42_migration_in_progress': {}, | ||
'ipv4_only_route_set_members': {}, | ||
} | ||
}) | ||
|
||
KNOWN_SOURCES_KEYS = { | ||
'authoritative', | ||
'keep_journal', | ||
'nrtm_host', | ||
'nrtm_port', | ||
'import_source', | ||
'import_serial_source', | ||
'import_timer', | ||
'object_class_filter', | ||
'export_destination', | ||
'export_destination_unfiltered', | ||
'export_timer', | ||
'nrtm_access_list', | ||
'nrtm_access_list_unfiltered', | ||
'strict_import_keycert_objects', | ||
'rpki_excluded', | ||
'scopefilter_excluded', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.