-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Documentation update for HA PR #140661 (http banned networks) #38012
base: current
Are you sure you want to change the base?
Conversation
It seems that this PR is targeted against an incorrect branch since it has a parent PR on one of our codebases. Documentation that needs to be updated for an upcoming release should target the |
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
📝 WalkthroughWalkthroughThe pull request introduces three new configuration options for the Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Client
participant HTTP as HTTP Integration
participant Log as Logging System
participant Notify as Notification System
Client->>HTTP: Send HTTP request
HTTP->>HTTP: Check IP against banned_networks
alt IP is banned
HTTP->>Log: Log request (if log_banned_networks enabled)
HTTP->>Notify: Trigger notification (if notify_banned_networks enabled)
HTTP-->>Client: Deny request
else IP not banned
HTTP-->>Client: Process request normally
end
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
🪧 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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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: 0
🧹 Nitpick comments (1)
source/_integrations/http.markdown (1)
167-175
: Typographical and Formatting Suggestions in the IP Ban SectionThis block contains several minor issues that could be addressed to improve clarity and correctness:
- CIDR Notation Correction:
On line 169, the example uses1.2.0.0\16
which appears to be a typo. It should use a forward slash:- To block `1.2.[0-255].[0-255]` use `1.2.0.0\16` + To block `1.2.[0-255].[0-255]` use `1.2.0.0/16`- Spell Correction:
On line 171, change “take affect” to “take effect” for semantic clarity:- If you edit the banned networks list you will need to restart Home Assistant for it to take affect + If you edit the banned networks list, you will need to restart Home Assistant for it to take effect- Punctuation Improvements:
The sentences on lines 171, 173, and 175 could benefit from additional commas to enhance readability. For example, on line 175, a clearer phrasing might be:- Banned IP log entries are `info` messages so to see them the logger default or for this integration must be at `info` or lower. + Banned IP log entries are logged as `info` messages, so the logger (or this integration) must be set to `info` or lower.Please review and adjust these suggestions to align with Home Assistant’s documentation style.
🧰 Tools
🪛 LanguageTool
[uncategorized] ~171-~171: Possible missing comma found.
Context: ...0\16`. If you edit the banned networks list you will need to restart Home Assistant...(AI_HYDRA_LEO_MISSING_COMMA)
[misspelling] ~171-~171: Did you mean “effect” (consequence, outcome, result)?
Context: ...o restart Home Assistant for it to take affect By default, logging failed attempts to...(AFFECT_EFFECT)
[uncategorized] ~173-~173: Possible missing comma found.
Context: ...tions are enabled. To disable either of these use thelog_banned_networks
and `noti...(AI_HYDRA_LEO_MISSING_COMMA)
[uncategorized] ~175-~175: Possible missing comma found.
Context: ...lags. Banned IP log entries areinfo
messages so to see them the logger default or fo...(AI_HYDRA_LEO_MISSING_COMMA)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/http.markdown
(3 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/http.markdown
[uncategorized] ~171-~171: Possible missing comma found.
Context: ...0\16`. If you edit the banned networks list you will need to restart Home Assistant...
(AI_HYDRA_LEO_MISSING_COMMA)
[misspelling] ~171-~171: Did you mean “effect” (consequence, outcome, result)?
Context: ...o restart Home Assistant for it to take affect By default, logging failed attempts to...
(AFFECT_EFFECT)
[uncategorized] ~173-~173: Possible missing comma found.
Context: ...tions are enabled. To disable either of these use the log_banned_networks
and `noti...
(AI_HYDRA_LEO_MISSING_COMMA)
[uncategorized] ~175-~175: Possible missing comma found.
Context: ...lags. Banned IP log entries are info
messages so to see them the logger default or fo...
(AI_HYDRA_LEO_MISSING_COMMA)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Redirect rules - home-assistant-docs
- GitHub Check: Header rules - home-assistant-docs
- GitHub Check: Pages changed - home-assistant-docs
🔇 Additional comments (1)
source/_integrations/http.markdown (1)
82-95
: New HTTP Configuration Options for IP Ban EnhancementsThe new configuration options—
banned_networks
,log_banned_networks
, andnotify_banned_networks
—have been added with clear descriptions, appropriate types, and default values. This addition aligns well with the intent to extend the HTTP integration’s filtering capabilities. Please ensure that the examples later in the file remain consistent with these updated options.
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: 0
🧹 Nitpick comments (1)
source/_integrations/http.markdown (1)
82-95
: Add new configuration options for banned networksThe new options (
banned_networks
,log_banned_networks
, andnotify_banned_networks
) are clearly defined with appropriate descriptions, types, and default values. The description forbanned_networks
explicitly ties its functionality toip_ban_enabled
, which is very helpful for users.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/http.markdown
(3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Redirect rules - home-assistant-docs
- GitHub Check: Header rules - home-assistant-docs
- GitHub Check: Pages changed - home-assistant-docs
🔇 Additional comments (2)
source/_integrations/http.markdown (2)
120-124
: Validate the sample configuration snippet for banned networksThe sample configuration snippet now includes entries for
banned_networks
, as well as explicit settings forlog_banned_networks
andnotify_banned_networks
. This example nicely demonstrates the expected format (using CIDR notation) and reinforces how these options should be configured.
167-175
: Enhance documentation for IP filtering with subnet banningThe added prose offers valuable context on the rationale behind subnet banning and explains the expected behavior:
- It highlights how hackers may attempt to bypass IP blocking by shifting addresses.
- It instructs users on how to specify network ranges in CIDR notation.
- It reminds users that any change to the banned networks list requires a Home Assistant restart.
- It clarifies that logging and persistent notifications for banned IP events are enabled by default.
Overall, these additions provide clear and actionable information to end users.
Do I need to do anything about this? |
That's the bit I don't understand how to do - I can't find a rebase button anywhere... |
Proposed change
Added documentation for HA pull request Improve http component to ban IP addresses by subnet
Issue discussed in Ban by subnet in http component (with working code) and [Security] Improvement of IPBan [HTTP Integration]
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit
New Features
Documentation