Docs restructure related to security guidelines#5959
Docs restructure related to security guidelines#5959hwupathum wants to merge 2 commits intowso2:masterfrom
Conversation
WalkthroughReplaced inline product-level security guideline files in four versioned docs with a single shared include and added a short clarification to encrypted-passwords documentation, consolidating content sourcing while keeping rendered guidance unchanged. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
6a8a1fb to
7f74d55
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (4)
en/includes/deploy/security/security-guidelines/product-level-security-guidelines.md (4)
65-65: Clarify the phrasing for better readability.The phrase "go through a user" is unclear. Use more precise language.
♻️ Proposed refactor
-When connecting WSO2 Identity Server to external databases or userstores (LDAP), make sure to go through a user who does not have permission to change the data store's schema. +When connecting WSO2 Identity Server to external databases or userstores (LDAP), use a user account that does not have permission to change the data store's schema.As per coding guidelines: "Use precise nouns and strong verbs; avoid vague verbs such as handle, manage, deal with, perform, and utilize."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@en/includes/deploy/security/security-guidelines/product-level-security-guidelines.md` at line 65, Replace the unclear phrase "go through a user who does not have permission to change the data store's schema" with a precise instruction: reword the sentence in the WSO2 Identity Server guidance to say something like "connect using a user account that does not have permission to modify the data store schema" (or similar), ensuring it refers to connecting to external databases or userstores (LDAP) and uses the noun "user account" and the verb "connect" for clarity.
61-61: Consider using more direct, active voice.The sentence uses a passive construction. Consider making it more direct and action-oriented.
♻️ Proposed refactor
-To ensure adequate network-level protection, all connections from your WSO2 Identity Server to external databases, userstores (LDAP), or other services should be over TLS. Therefore, make sure to use **TLS-enabled external systems**. +To ensure adequate network-level protection, use TLS for all connections from your WSO2 Identity Server to external databases, userstores (LDAP), or other services. Therefore, make sure to use **TLS-enabled external systems**.As per coding guidelines: "Reduce unnecessary use of weak 'be' verbs (am, is, are, was, were) and prefer direct verbs."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@en/includes/deploy/security/security-guidelines/product-level-security-guidelines.md` at line 61, Rewrite the passive sentence "To ensure adequate network-level protection, all connections from your WSO2 Identity Server to external databases, userstores (LDAP), or other services should be over TLS. Therefore, make sure to use **TLS-enabled external systems**." into a direct, active voice instruction; for example, start with an imperative like "Use TLS for all connections from WSO2 Identity Server to external databases, userstores (LDAP), and other services" and replace the second sentence with a concise active reinforcement such as "Ensure external systems have TLS enabled." Update the lines containing that sentence in product-level-security-guidelines.md accordingly.
72-72: Consider using more direct phrasing.The phrase "To have" uses a weak verb. Consider a more direct construction.
♻️ Proposed refactor
-To have strong transport-level security, use **TLS 1.3** (recommended) or at minimum **TLS 1.2**, and disable SSL, TLS 1.0, and 1.1. +For strong transport-level security, use **TLS 1.3** (recommended) or at minimum **TLS 1.2**, and disable SSL, TLS 1.0, and 1.1.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@en/includes/deploy/security/security-guidelines/product-level-security-guidelines.md` at line 72, Replace the weak-verb opening "To have strong transport-level security, use **TLS 1.3** (recommended) or at minimum **TLS 1.2**, and disable SSL, TLS 1.0, and 1.1." with a more direct construction such as "Use **TLS 1.3** (recommended) or at minimum **TLS 1.2** for strong transport-level security; disable SSL, TLS 1.0, and TLS 1.1." — update the sentence in product-level-security-guidelines.md where that exact line appears.
105-105: Consider leading with the action for clarity.The sentence structure could be more direct by stating the action first.
♻️ Proposed refactor
-If there are dynamic pages in your application with sensitive information, you need to prevent browser caching. This can be done by making sure that the applications deployed in your server will return the relevant HTTP response headers. +Prevent browser caching for dynamic pages in your application that contain sensitive information. This can be done by making sure that the applications deployed in your server will return the relevant HTTP response headers.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@en/includes/deploy/security/security-guidelines/product-level-security-guidelines.md` at line 105, Rewrite the sentence to lead with the actionable instruction: replace "If there are dynamic pages in your application with sensitive information, you need to prevent browser caching. This can be done by making sure that the applications deployed in your server will return the relevant HTTP response headers." with a direct directive such as "Prevent browser caching for dynamic pages that contain sensitive information by ensuring your server returns the appropriate HTTP response headers." Update the sentence in product-level-security-guidelines.md where that paragraph appears so it starts with the action and keeps the same meaning about returning relevant HTTP response headers.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@en/includes/deploy/security/security-guidelines/product-level-security-guidelines.md`:
- Line 1: The top-level heading "# Product-Level Security Guidelines for
Production Deployment" should use sentence case; replace it with "#
Product-level security guidelines for production deployment" so only the first
word is capitalized and proper nouns (none here) are preserved.
---
Nitpick comments:
In
`@en/includes/deploy/security/security-guidelines/product-level-security-guidelines.md`:
- Line 65: Replace the unclear phrase "go through a user who does not have
permission to change the data store's schema" with a precise instruction: reword
the sentence in the WSO2 Identity Server guidance to say something like "connect
using a user account that does not have permission to modify the data store
schema" (or similar), ensuring it refers to connecting to external databases or
userstores (LDAP) and uses the noun "user account" and the verb "connect" for
clarity.
- Line 61: Rewrite the passive sentence "To ensure adequate network-level
protection, all connections from your WSO2 Identity Server to external
databases, userstores (LDAP), or other services should be over TLS. Therefore,
make sure to use **TLS-enabled external systems**." into a direct, active voice
instruction; for example, start with an imperative like "Use TLS for all
connections from WSO2 Identity Server to external databases, userstores (LDAP),
and other services" and replace the second sentence with a concise active
reinforcement such as "Ensure external systems have TLS enabled." Update the
lines containing that sentence in product-level-security-guidelines.md
accordingly.
- Line 72: Replace the weak-verb opening "To have strong transport-level
security, use **TLS 1.3** (recommended) or at minimum **TLS 1.2**, and disable
SSL, TLS 1.0, and 1.1." with a more direct construction such as "Use **TLS 1.3**
(recommended) or at minimum **TLS 1.2** for strong transport-level security;
disable SSL, TLS 1.0, and TLS 1.1." — update the sentence in
product-level-security-guidelines.md where that exact line appears.
- Line 105: Rewrite the sentence to lead with the actionable instruction:
replace "If there are dynamic pages in your application with sensitive
information, you need to prevent browser caching. This can be done by making
sure that the applications deployed in your server will return the relevant HTTP
response headers." with a direct directive such as "Prevent browser caching for
dynamic pages that contain sensitive information by ensuring your server returns
the appropriate HTTP response headers." Update the sentence in
product-level-security-guidelines.md where that paragraph appears so it starts
with the action and keeps the same meaning about returning relevant HTTP
response headers.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 03dbcb66-c44b-4810-8584-3377eb44e78a
📒 Files selected for processing (6)
en/identity-server/7.0.0/docs/deploy/security/security-guidelines/product-level-security-guidelines.mden/identity-server/7.1.0/docs/deploy/security/security-guidelines/product-level-security-guidelines.mden/identity-server/7.2.0/docs/deploy/security/security-guidelines/product-level-security-guidelines.mden/identity-server/next/docs/deploy/security/security-guidelines/product-level-security-guidelines.mden/includes/deploy/security/encrypt-passwords-with-cipher-tool.mden/includes/deploy/security/security-guidelines/product-level-security-guidelines.md
| @@ -0,0 +1,342 @@ | |||
| # Product-Level Security Guidelines for Production Deployment | |||
There was a problem hiding this comment.
🛠️ Refactor suggestion | 🟠 Major
Use sentence case for the heading.
The heading should follow sentence case, capitalizing only the first word and proper nouns.
📝 Proposed fix
-# Product-Level Security Guidelines for Production Deployment
+# Product-level security guidelines for production deploymentAs per coding guidelines: "Use sentence case for all headings and document titles, capitalizing only the first word and proper nouns."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In
`@en/includes/deploy/security/security-guidelines/product-level-security-guidelines.md`
at line 1, The top-level heading "# Product-Level Security Guidelines for
Production Deployment" should use sentence case; replace it with "#
Product-level security guidelines for production deployment" so only the first
word is capitalized and proper nouns (none here) are preserved.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@en/includes/deploy/security/security-guidelines/product-level-security-guidelines.md`:
- Line 7: Replace the non-descriptive link text "here" in the sentence "For more
information, see [here]({{base_path}}/deploy/get-started/get-wso2-updates/)"
with a descriptive phrase such as "instructions to get WSO2 updates" (or
similar) so the link text clearly indicates the destination; update the markdown
link target to use that descriptive text while keeping the existing
URL/templated path.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6db63b96-d85f-43e0-8653-d4e7a8b074ee
📒 Files selected for processing (6)
en/identity-server/7.0.0/docs/deploy/security/security-guidelines/product-level-security-guidelines.mden/identity-server/7.1.0/docs/deploy/security/security-guidelines/product-level-security-guidelines.mden/identity-server/7.2.0/docs/deploy/security/security-guidelines/product-level-security-guidelines.mden/identity-server/next/docs/deploy/security/security-guidelines/product-level-security-guidelines.mden/includes/deploy/security/encrypt-passwords-with-cipher-tool.mden/includes/deploy/security/security-guidelines/product-level-security-guidelines.md
🚧 Files skipped from review as they are similar to previous changes (2)
- en/identity-server/next/docs/deploy/security/security-guidelines/product-level-security-guidelines.md
- en/includes/deploy/security/encrypt-passwords-with-cipher-tool.md
|
|
||
| ## Security updates | ||
|
|
||
| Apply all the security patches relevant to your WSO2 Identity Server version. For more information, see [here]({{base_path}}/deploy/get-started/get-wso2-updates/) |
There was a problem hiding this comment.
🛠️ Refactor suggestion | 🟠 Major
Use descriptive link text instead of "here".
The link text "here" does not describe the destination. Replace it with text that indicates what the user will find, such as "instructions to get WSO2 updates" or similar.
🔗 Proposed fix
-Apply all the security patches relevant to your WSO2 Identity Server version. For more information, see [here]({{base_path}}/deploy/get-started/get-wso2-updates/)
+Apply all the security patches relevant to your WSO2 Identity Server version. See [Get WSO2 updates]({{base_path}}/deploy/get-started/get-wso2-updates/) for instructions.As per coding guidelines: "Use descriptive link text and do not paste raw URLs as link text."
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| Apply all the security patches relevant to your WSO2 Identity Server version. For more information, see [here]({{base_path}}/deploy/get-started/get-wso2-updates/) | |
| Apply all the security patches relevant to your WSO2 Identity Server version. See [Get WSO2 updates]({{base_path}}/deploy/get-started/get-wso2-updates/) for instructions. |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In
`@en/includes/deploy/security/security-guidelines/product-level-security-guidelines.md`
at line 7, Replace the non-descriptive link text "here" in the sentence "For
more information, see
[here]({{base_path}}/deploy/get-started/get-wso2-updates/)" with a descriptive
phrase such as "instructions to get WSO2 updates" (or similar) so the link text
clearly indicates the destination; update the markdown link target to use that
descriptive text while keeping the existing URL/templated path.
Purpose
Related PRs
Test environment
Security checks
Summary by CodeRabbit