-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exempt miraheze.org from RDNS checks; update domains_as_tlds #3866
Conversation
I think we can safely assume that miraheze.org will always be correctly pointed to Miraheze. This fixes the RDNS alerts due to cloudflare. also adds liao.media to domains_as_tlds to fix another alert (NS set for subdomain, not root).
WalkthroughThe recent updates involve adjustments to reverse DNS checks and error handling in Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
CI failure has nothing to do with my change |
Exempt from mypy, not our code
Update keys.py
@coderabbitai review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we not exit a bit earlier in the process? Would be a bit more optimal.
@coderabbitai review |
Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- modules/monitoring/files/check_reverse_dns.py (2 hunks)
- modules/salt/files/keys.py (1 hunks)
Files skipped from review due to trivial changes (1)
- modules/salt/files/keys.py
Additional context used
Ruff
modules/monitoring/files/check_reverse_dns.py
129-129: f-string without any placeholders (F541)
Additional comments not posted (1)
modules/monitoring/files/check_reverse_dns.py (1)
62-62
: The addition of 'liao.media' todomains_as_tlds
aligns with the PR objectives and is correctly implemented.
Actions performedReview triggered.
|
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@coderabbitai full review |
Actions performedFull review triggered. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- modules/monitoring/files/check_reverse_dns.py (2 hunks)
- modules/salt/files/keys.py (1 hunks)
Additional comments not posted (6)
modules/salt/files/keys.py (4)
1-1
: The addition of themypy: ignore-errors
directive is appropriate for handling dynamic typing in SaltStack.
Line range hint
11-29
: Theaccept
function is well-implemented with appropriate error handling and logging.
Line range hint
31-47
: Thestatus
function correctly handles different states of a minion's key and provides clear status updates.
Line range hint
49-69
: Thedelete
function is correctly implemented, with comprehensive checks and appropriate logging for missing keys.modules/monitoring/files/check_reverse_dns.py (2)
Line range hint
98-123
: Theget_reverse_dnshostname
function is robust, with comprehensive error handling and clear exit points for different failure modes.
62-62
: Adding 'liao.media' todomains_as_tlds
addresses specific DNS configuration issues.Verification successful
The search results show that
domains_as_tlds
is only used within themodules/monitoring/files/check_reverse_dns.py
file. This indicates that adding 'liao.media' todomains_as_tlds
does not affect other parts of the codebase.
modules/monitoring/files/check_reverse_dns.py
:
- Line defining
domains_as_tlds
- Line checking if
root_domain
is indomains_as_tlds
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that adding 'liao.media' to domains_as_tlds does not affect other functionalities. # Test: Search for other usages of `domains_as_tlds`. Expect: No unexpected impacts. rg --type python $'domains_as_tlds'Length of output: 65
Script:
#!/bin/bash # Description: Verify that adding 'liao.media' to domains_as_tlds does not affect other functionalities. # Test: Search for other usages of `domains_as_tlds`. Expect: No unexpected impacts. rg 'domains_as_tlds' --glob '*.py'Length of output: 220
I think we can safely assume that miraheze.org will always be correctly pointed to Miraheze. This fixes the RDNS alerts due to cloudflare.
also adds liao.media to domains_as_tlds to fix another alert (NS set for subdomain, not root).
Summary by CodeRabbit
liao.media
andmiraheze.org
from reverse DNS checks, enhancing compatibility for these domains.