diff --git a/docs/contributing/code/frameworks/Makefile.md b/docs/contributing/code/frameworks/Makefile.md index 8c925f3585..c1c49d7062 100644 --- a/docs/contributing/code/frameworks/Makefile.md +++ b/docs/contributing/code/frameworks/Makefile.md @@ -4,15 +4,15 @@ Use this page for rules that shape the repository's `Makefile`. -The `Makefile` is the human-facing command surface for the repo. It should expose stable targets that people and CI are meant to run directly. +The `Makefile` is the human-facing command surface for the repo. It MUST expose stable targets that people and CI are meant to run directly. ## Target Design -- Keep public targets stable, named clearly, and documented. -- Add a target only when a human operator or CI should run it directly. -- Keep helper-only logic, plumbing, and intermediate steps in `scripts/` or other implementation files. -- Prefer targets that compose smaller scripts instead of embedding large shell fragments in the `Makefile`. -- Keep the command surface small enough that contributors can discover the obvious path quickly. +- You MUST keep public targets stable, named clearly, and documented. +- You MUST NOT add a target unless a human operator or CI should run it directly. +- You MUST keep helper-only logic, plumbing, and intermediate steps in `scripts/` or other implementation files. +- You SHOULD prefer targets that compose smaller scripts instead of embedding large shell fragments in the `Makefile`. +- You MUST keep the command surface small enough that contributors can discover the obvious path quickly. ## Repository Entry Points diff --git a/docs/contributing/code/frameworks/ansible.md b/docs/contributing/code/frameworks/ansible.md index c02731f7b3..6d0afff190 100644 --- a/docs/contributing/code/frameworks/ansible.md +++ b/docs/contributing/code/frameworks/ansible.md @@ -10,14 +10,14 @@ Use these shared rules as the default baseline for role values and path handling ## Paths -Build filesystem paths with `path_join` instead of concatenating path segments as strings. +You MUST build filesystem paths with `path_join` instead of concatenating path segments as strings. ## Variables and Constants These rules keep shared role values explicit, reusable, and easy to read. -- Prefer defining shared fixed role variables once in `vars/main.yml` as the single source of truth instead of recomputing them with `lookup()` or dotted variable composition in `*.j2` or `*.yml`. -- Variables that are defined once and treated as constants must be uppercase. +- You MUST prefer defining shared fixed role variables once in `vars/main.yml` as the single source of truth instead of recomputing them with `lookup()` or dotted variable composition in `*.j2` or `*.yml`. +- Variables that are defined once and treated as constants MUST be uppercase. ## Role Design @@ -27,15 +27,15 @@ Use this section for role-structure guidance around images, files, and constants Use this rule when a role needs a Docker image definition. -- Prefer `Dockerfile` over `Dockerfile.j2`; only use `Dockerfile.j2` when build-time templating is genuinely required. +- You SHOULD prefer `Dockerfile` over `Dockerfile.j2`; only use `Dockerfile.j2` when build-time templating is genuinely required. ### Image Versions Use this rule when a role pins container image versions in `roles/web-*/config/main.yml`. -- Keep semver-like image versions current when the upstream image publishes matching newer tags. -- Use `# nocheck: docker-version` directly above a `version:` key only for intentional exceptions that should not be flagged by the lint check. -- Prefer explicit version pinning over drifting tags when the role depends on stable, reproducible deploys. +- You MUST keep semver-like image versions current when the upstream image publishes matching newer tags. +- You MUST use `# nocheck: docker-version` directly above a `version:` key only for intentional exceptions that should not be flagged by the lint check. +- You SHOULD prefer explicit version pinning over drifting tags when the role depends on stable, reproducible deploys. For documentation, comments, semantics, and writing guidance, see [Documentation](../../documentation.md). diff --git a/docs/contributing/code/languages/shell.md b/docs/contributing/code/languages/shell.md index c034695488..847102deef 100644 --- a/docs/contributing/code/languages/shell.md +++ b/docs/contributing/code/languages/shell.md @@ -6,17 +6,17 @@ Use this page for shell-script-specific guidance. ## Script Layout -- Store general `.sh` scripts for infinito.nexus administration under `scripts/`. -- Keep shell entrypoints in `scripts/` so they stay easy to discover and reuse. -- Keep role-local or component-specific shell helpers in their owning area, such as `roles/.../files/`, when they belong to a single role. +- You MUST store general `.sh` scripts for infinito.nexus administration under `scripts/`. +- You MUST keep shell entrypoints in `scripts/` so they stay easy to discover and reuse. +- You MUST keep role-local or component-specific shell helpers in their owning area, such as `roles/.../files/`, when they belong to a single role. ## Executable Bit -- Set the executable bit on shell scripts that are meant to run directly. -- Use `chmod +x` for those scripts so they can be invoked as executables. -- Keep a shebang at the top of executable shell scripts. +- You MUST set the executable bit on shell scripts that are meant to run directly. +- You MUST use `chmod +x` for those scripts so they can be invoked as executables. +- You MUST keep a shebang at the top of executable shell scripts. ## Notes - `scripts/tests/deploy/local/exec/container.sh` is a direct-entry shell script example. -- For shell entrypoints that are exposed through `make`, prefer a thin target that delegates to the script. +- For shell entrypoints that are exposed through `make`, you SHOULD prefer a thin target that delegates to the script. diff --git a/docs/contributing/code/quality.md b/docs/contributing/code/quality.md index 23355e617f..e5e5dff224 100644 --- a/docs/contributing/code/quality.md +++ b/docs/contributing/code/quality.md @@ -6,13 +6,13 @@ Use this page for repository-wide guidance on diff shape, readability, cleanup, ## Diff Quality -- Keep diffs focused, readable, and easy to review. -- Avoid duplicate, conflicting, or purely cosmetic churn unless formatting cleanup is part of the task. -- Prefer semantic improvements that reduce maintenance effort. +- You MUST keep diffs focused, readable, and easy to review. +- You MUST NOT introduce duplicate, conflicting, or purely cosmetic churn unless formatting cleanup is part of the task. +- You SHOULD prefer semantic improvements that reduce maintenance effort. ## Lint -Use these linting and quality tools where applicable: +You MUST use these linting and quality tools where applicable: - [ruff](https://github.com/astral-sh/ruff) - [shellcheck](https://github.com/koalaman/shellcheck) @@ -20,10 +20,10 @@ Use these linting and quality tools where applicable: ## Repository Lint Rules -Use these repo-wide rules when you add, move, or review files: +You MUST apply these repo-wide rules when you add, move, or review files: -- Keep broad folders shallow when that helps readability. Direct children should usually stay at 12 or fewer items per folder. +- Keep broad folders shallow when that helps readability. Direct children SHOULD stay at 12 or fewer items per folder. - Treat structural hubs such as `roles/`, `cli/`, `tests/unit/plugins/filter`, `tests/unit/roles`, `inventories/bundles/servers`, `inventories/bundles/workstations`, `plugins/filter`, `plugins/lookup`, `group_vars/all`, and `.github/workflows` as intentional exceptions when they are used to organize the tree. -- Prefer smaller, more focused folders over dumping many unrelated files into one directory. +- You SHOULD prefer smaller, more focused folders over dumping many unrelated files into one directory. For refactoring guidance, see [Development](../development/README.md). diff --git a/docs/contributing/code/role/javascript.js.md b/docs/contributing/code/role/javascript.js.md index 604a185f72..5fc16d7333 100644 --- a/docs/contributing/code/role/javascript.js.md +++ b/docs/contributing/code/role/javascript.js.md @@ -12,16 +12,16 @@ For browser-side validation requirements after visible behavior changes, see [Co - `sys-front-inj-javascript` loads `templates/javascript.js.j2` when it exists and otherwise falls back to `files/javascript.js`. - The injector runs when `compose.services.javascript.enabled` is enabled. - The loaded script is collapsed into a one-liner before injection and added to the CSP hash list so inline execution remains consistent with the generated policy. -- Use `javascript.js.j2` when the script depends on role variables or inventory values, and use `files/javascript.js` when the script is static. +- You MUST use `javascript.js.j2` when the script depends on role variables or inventory values, and use `files/javascript.js` when the script is static. ## Inventory -- Keep `compose.services.javascript.enabled` enabled in the role configuration or override it in the inventory when JavaScript injection should run. -- Pass only the runtime values that the browser logic actually needs. Keep the rendered template surface small and explicit. +- You MUST keep `compose.services.javascript.enabled` enabled in the role configuration or override it in the inventory when JavaScript injection should run. +- You MUST pass only the runtime values that the browser logic actually needs. Keep the rendered template surface small and explicit. ## Repository Rules -- Use role-local JavaScript only for browser-side integration gaps that cannot be solved cleanly through app configuration or CSS alone. -- When OIDC is enabled, disable or hide the normal login form in the UI if the target application does not already provide a dedicated configuration switch for that behavior. -- Disable UI fields that are authored by OIDC or LDAP so users do not edit values locally that are managed by the identity provider or directory. -- Do not write values back from those UI fields to OIDC or LDAP through injected JavaScript. Treat those fields as externally managed and read-only in the application UI. +- You MUST use role-local JavaScript only for browser-side integration gaps that cannot be solved cleanly through app configuration or CSS alone. +- When OIDC is enabled, you MUST disable or hide the normal login form in the UI if the target application does not already provide a dedicated configuration switch for that behavior. +- You MUST disable UI fields that are authored by OIDC or LDAP so users do not edit values locally that are managed by the identity provider or directory. +- You MUST NOT write values back from those UI fields to OIDC or LDAP through injected JavaScript. Treat those fields as externally managed and read-only in the application UI. diff --git a/docs/contributing/code/role/playwright.env.j2.md b/docs/contributing/code/role/playwright.env.j2.md index 304b6e54e2..e9fd4c835b 100644 --- a/docs/contributing/code/role/playwright.env.j2.md +++ b/docs/contributing/code/role/playwright.env.j2.md @@ -11,18 +11,18 @@ For the matching scenario requirements, see [Contributing `playwright.spec.js`]( - `test-e2e-playwright` discovers Playwright-enabled roles through `templates/playwright.env.j2`. - The file is rendered into `.env` and passed to the Playwright container through `--env-file`. -- The rendered environment must provide the inputs expected by the matching `files/playwright.spec.js`. +- The rendered environment MUST provide the inputs expected by the matching `files/playwright.spec.js`. ## Variable Rules -- `APP_BASE_URL` defines the supported start page of the role's test flow. -- If `compose.services.dashboard.enabled` is enabled, `APP_BASE_URL` should resolve to the dashboard URL because the test flow must start there. -- Provide additional app-specific URLs, feature flags, issuer URLs, and credentials only when the spec consumes them. -- Use explicit variable names that match the scenarios in the spec, especially when multiple personas such as `biber` and `administrator` are covered. -- Quote values with `dotenv_quote` when the rendered value may contain spaces or special characters. +- `APP_BASE_URL` MUST define the supported start page of the role's test flow. +- If `compose.services.dashboard.enabled` is enabled, `APP_BASE_URL` SHOULD resolve to the dashboard URL because the test flow must start there. +- You MUST provide additional app-specific URLs, feature flags, issuer URLs, and credentials only when the spec consumes them. +- You MUST use explicit variable names that match the scenarios in the spec, especially when multiple personas such as `biber` and `administrator` are covered. +- You MUST quote values with `dotenv_quote` when the rendered value may contain spaces or special characters. ## Scope -- Keep the template surface small and explicit. -- Do not use `playwright.env.j2` as a general dump for unrelated runtime variables. -- Put the scenario requirements in [Contributing `playwright.spec.js`](playwright.spec.js.md). +- You MUST keep the template surface small and explicit. +- You MUST NOT use `playwright.env.j2` as a general dump for unrelated runtime variables. +- You MUST put the scenario requirements in [Contributing `playwright.spec.js`](playwright.spec.js.md). diff --git a/docs/contributing/code/role/playwright.spec.js.md b/docs/contributing/code/role/playwright.spec.js.md index c11ccbe6e9..f03822d1d0 100644 --- a/docs/contributing/code/role/playwright.spec.js.md +++ b/docs/contributing/code/role/playwright.spec.js.md @@ -11,19 +11,19 @@ For the matching rendered environment contract, see [Contributing `playwright.en - `test-e2e-playwright` copies `files/playwright.spec.js` into the staged test project as `tests/playwright.spec.js`. - The spec consumes the `.env` rendered from `templates/playwright.env.j2`. -- `package.json` and `playwright.config.js` stay centralized in `roles/test-e2e-playwright/files/`. +- `package.json` and `playwright.config.js` MUST stay centralized in `roles/test-e2e-playwright/files/`. ## Requirements -- Every Playwright-enabled role must verify login and logout. -- Every role with `compose.services.dashboard.enabled` must start the test flow from the dashboard. -- When the role provides both `biber` and `administrator` scenarios, login and logout for both must be covered. -- When role-local `javascript.js` or `style.css` is implemented or refactored, the affected user-visible behavior must be added to or updated in the Playwright suite. -- Assertions must verify real UI states and user-visible outcomes, not only URL transitions or static strings. -- The suite must finish in a clearly logged-out state. +- Every Playwright-enabled role MUST verify login and logout. +- Every role with `compose.services.dashboard.enabled` MUST start the test flow from the dashboard. +- When the role provides both `biber` and `administrator` scenarios, login and logout for both MUST be covered. +- When role-local `javascript.js` or `style.css` is implemented or refactored, the affected user-visible behavior MUST be added to or updated in the Playwright suite. +- Assertions MUST verify real UI states and user-visible outcomes, not only URL transitions or static strings. +- The suite MUST finish in a clearly logged-out state. ## Scenario Rules -- Name tests after the real flow they verify, for example dashboard to app login and logout. -- Keep persona-specific scenarios explicit when the role distinguishes between different user paths. -- Add extra coverage when relevant, for example OIDC, LDAP, or dashboard-specific navigation. +- You MUST name tests after the real flow they verify, for example dashboard to app login and logout. +- You MUST keep persona-specific scenarios explicit when the role distinguishes between different user paths. +- You SHOULD add extra coverage when relevant, for example OIDC, LDAP, or dashboard-specific navigation. diff --git a/docs/contributing/code/role/style.css.md b/docs/contributing/code/role/style.css.md index cbeca84a97..a7f64dd8b1 100644 --- a/docs/contributing/code/role/style.css.md +++ b/docs/contributing/code/role/style.css.md @@ -16,12 +16,12 @@ For browser-side validation requirements after visible UI changes, see [Contribu ## Inventory -- Set `design.css.colors.base` in the inventory as the single base color. -- Keep `compose.services.css.enabled` enabled in the role configuration or override it in the inventory when CSS injection should run. -- Add `design.font.import_url` when typography and colors should be controlled together. +- You MUST set `design.css.colors.base` in the inventory as the single base color. +- You MUST keep `compose.services.css.enabled` enabled in the role configuration or override it in the inventory when CSS injection should run. +- You SHOULD add `design.font.import_url` when typography and colors should be controlled together. ## Color Logic - The palette is generated from a base color through `colorscheme-generator`. -- Role-local CSS can use the full generated palette space: all color categories `01` through `07` and all brightness values `00` through `99`. -- Combine the matching `--color-XX-*` and `--color-XX-rgb-*` tokens in a way that is both meaningful and aesthetically coherent so semantic mappings, surfaces, gradients, borders, and overlays work together as one design system. +- Role-local CSS MAY use the full generated palette space: all color categories `01` through `07` and all brightness values `00` through `99`. +- You MUST combine the matching `--color-XX-*` and `--color-XX-rgb-*` tokens in a way that is both meaningful and aesthetically coherent so semantic mappings, surfaces, gradients, borders, and overlays work together as one design system. diff --git a/docs/contributing/development/debugging.md b/docs/contributing/development/debugging.md index e738605d91..18aa5c8421 100644 --- a/docs/contributing/development/debugging.md +++ b/docs/contributing/development/debugging.md @@ -12,11 +12,11 @@ If CI fails, follow a clean debugging workflow: Important: -- Do not debug from screenshots alone. Use raw logs. -- Do not commit log files to the repository. -- If a [Playwright](https://playwright.dev/) job fails, also download the Playwright assets, store them in `/tmp/`, and analyze them together with the logs. +- You MUST NOT debug from screenshots alone. Use raw logs. +- You MUST NOT commit log files to the repository. +- If a [Playwright](https://playwright.dev/) job fails, you MUST also download the Playwright assets, store them in `/tmp/`, and analyze them together with the logs. -Use targeted manual CI jobs instead of rerunning the full pipeline if you only need one focused check. +You SHOULD use targeted manual CI jobs instead of rerunning the full pipeline if you only need one focused check. Prefer the manual workflow in [entry-manual.yml](../../../.github/workflows/entry-manual.yml): diff --git a/docs/contributing/development/refactoring.md b/docs/contributing/development/refactoring.md index 5bcd76ef58..ed16d47496 100644 --- a/docs/contributing/development/refactoring.md +++ b/docs/contributing/development/refactoring.md @@ -4,9 +4,9 @@ Use this page when you reshape existing code without changing intended behavior. -- Keep refactoring changes small enough to review and validate. -- If you touch a file, keep it aligned with the code principles and quality rules where practical. -- If similar logic exists elsewhere in the project, refactor it toward a shared implementation. -- Separate mechanical cleanup from behavior changes when that lowers risk. +- You MUST keep refactoring changes small enough to review and validate. +- If you touch a file, you SHOULD keep it aligned with the code principles and quality rules where practical. +- If similar logic exists elsewhere in the project, you SHOULD refactor it toward a shared implementation. +- You SHOULD separate mechanical cleanup from behavior changes when that lowers risk. For related expectations, see [Code](../code/README.md). diff --git a/docs/contributing/documentation.md b/docs/contributing/documentation.md index e26ca67586..d0429abbf9 100644 --- a/docs/contributing/documentation.md +++ b/docs/contributing/documentation.md @@ -19,6 +19,20 @@ All project documentation should be reachable at [docs.infinito.nexus](https://d - When keeping an intentionally retained outdated version pin, document the exception at the pin site with a local `TODO` comment in the file's normal comment style (`#todo`, `# TODO`, or similar) and explain why it remains pinned so the root cause stays visible until it can be fixed. +## Requirement Keywords (RFC 2119) + +You MUST use [RFC 2119](https://www.rfc-editor.org/rfc/rfc2119) keywords in documentation and agent instructions to express requirement levels unambiguously: + +| Keyword | Meaning | +|---|---| +| `MUST` / `REQUIRED` / `SHALL` | Absolute requirement — no deviation allowed. | +| `MUST NOT` / `SHALL NOT` | Absolute prohibition — never do this. | +| `SHOULD` / `RECOMMENDED` | Strongly recommended — deviation requires justification. | +| `SHOULD NOT` / `NOT RECOMMENDED` | Strongly discouraged — allowed only with justification. | +| `MAY` / `OPTIONAL` | Permitted but not required. | + +Apply these keywords in `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, and all files under `docs/agents/` so that requirement strength is always unambiguous. + ## Semantics and Writing - Keep code and comments in English. diff --git a/docs/contributing/flow/pull-request.md b/docs/contributing/flow/pull-request.md index b26bec099b..6d9a373407 100644 --- a/docs/contributing/flow/pull-request.md +++ b/docs/contributing/flow/pull-request.md @@ -2,7 +2,7 @@ # Pull Request Templates -Pick the template that matches your change. The table below links the actual templates. +You MUST pick the template that matches your change. The table below links the actual templates. | Change type | Template | |---|---| @@ -25,7 +25,7 @@ The PR workflow classifies changes by the files that were touched: ## Pull Request Checklist -Before you open a Pull Request, make sure: +Before you open a Pull Request, you MUST verify all of the following: - CI in your fork is green. - Your branch is up to date with `main`. diff --git a/docs/contributing/flow/review.md b/docs/contributing/flow/review.md index 3006db7403..8fcf11715d 100644 --- a/docs/contributing/flow/review.md +++ b/docs/contributing/flow/review.md @@ -2,17 +2,17 @@ # Review Requirements -Open a Pull Request only when it is ready for real review. +You MUST open a Pull Request only when it is ready for real review. -The matching Pull Request template is the SPOT for PR structure, required author input, and review context. Use the guidance in [Pull Request Templates](pull-request.md) and orient your Pull Request to it. +The matching Pull Request template is the SPOT for PR structure, required author input, and review context. You MUST use the guidance in [Pull Request Templates](pull-request.md) and orient your Pull Request to it. The [Code](../code/README.md) page is the SPOT for repository-wide code quality expectations such as diff quality, maintainability, and conventions. In addition to the templates, keep these repository-wide review rules in mind: -- Keep commit history clear and reviewable. +- You MUST keep commit history clear and reviewable. - Code ownership is defined in [CODEOWNERS](../../../.github/CODEOWNERS). -- Auth, proxy, TLS, networking, migrations, and shared abstractions deserve extra review attention. -- Attach screenshots, traces, logs, and migration notes when they materially help validate the change. +- Auth, proxy, TLS, networking, migrations, and shared abstractions MUST receive extra review attention. +- You SHOULD attach screenshots, traces, logs, and migration notes when they materially help validate the change. More information [here](https://s.infinito.nexus/reviewguide). diff --git a/docs/contributing/flow/workflow.md b/docs/contributing/flow/workflow.md index 69e41d9b14..5def07fca5 100644 --- a/docs/contributing/flow/workflow.md +++ b/docs/contributing/flow/workflow.md @@ -4,15 +4,15 @@ This repository uses a strict fork-first workflow. -- Do not commit directly to `main`. -- Do all work in your own fork. -- Open Pull Requests from your fork back to the main repository. +- You MUST NOT commit directly to `main`. +- You MUST do all work in your own fork. +- You MUST open Pull Requests from your fork back to the main repository. Why this matters: -- `main` should stay stable. +- `main` MUST stay stable. - Shared CI resources are limited. -- Broken experimental work should not run in the main repository. +- Broken experimental work MUST NOT run in the main repository. ## Step-by-Step Flow @@ -27,7 +27,7 @@ Why this matters: ## Branch Prefixes -Use these prefixes for branch names: +You MUST use these prefixes for branch names: | Prefix | When to use it | Example | |---|---|---| diff --git a/docs/contributing/tools/agents.md b/docs/contributing/tools/agents.md index c3a72a93f8..8c4e9f4dd9 100644 --- a/docs/contributing/tools/agents.md +++ b/docs/contributing/tools/agents.md @@ -2,7 +2,7 @@ # Agent Guidelines for humans -AI assistants are welcome, but they must follow the same workflow as humans. +AI assistants are welcome, but they MUST follow the same workflow as humans. This page complements [AGENTS.md](../../../AGENTS.md). Use it as the agent-focused companion for contributor workflow, testing, review, and the code and development guides. @@ -10,12 +10,12 @@ This page complements [AGENTS.md](../../../AGENTS.md). Use it as the agent-focus Additional agent-specific rules: -- Do not invent commands, workflows, or files that do not exist. -- Never expose secrets in prompts, code, screenshots, or logs. -- Treat AI output as a draft that must be reviewed for wrong assumptions, duplicate logic, and security mistakes. -- Keep agent instructions consistent: `AGENTS.md` is the repository-wide source of truth, while `CLAUDE.md` and `GEMINI.md` are tool-specific additions. -- Read [AGENTS.md](../../../AGENTS.md) before making changes. -- Keep explanations simple and explicit. -- State assumptions clearly. +- You MUST NOT invent commands, workflows, or files that do not exist. +- You MUST NEVER expose secrets in prompts, code, screenshots, or logs. +- You MUST treat AI output as a draft that must be reviewed for wrong assumptions, duplicate logic, and security mistakes. +- You MUST keep agent instructions consistent: `AGENTS.md` is the repository-wide source of truth, while `CLAUDE.md` and `GEMINI.md` are tool-specific additions. +- You MUST read [AGENTS.md](../../../AGENTS.md) before making changes. +- You MUST keep explanations simple and explicit. +- You MUST state assumptions clearly. More information [here](https://s.infinito.nexus/aibestpractice). diff --git a/docs/security/administrator.md b/docs/security/administrator.md index 0cd2eeaacb..9924f4e315 100644 --- a/docs/security/administrator.md +++ b/docs/security/administrator.md @@ -1,28 +1,28 @@ # Security Guidelines -Infinito.Nexus is designed with security in mind. However, while following our guidelines can greatly improve your system’s security, no IT system can be 100% secure. Please report any vulnerabilities as soon as possible. +Infinito.Nexus is designed with security in mind. However, while following our guidelines can greatly improve your system's security, no IT system can be 100% secure. Please report any vulnerabilities as soon as possible. In addition to the user security guidelines, administrators have additional responsibilities to secure the entire system: -- **Deploy on an Encrypted Server** - It is recommended to install Infinito.Nexus on an encrypted server to prevent hosting providers from accessing end-user data. For a practical guide on setting up an encrypted server, refer to the [Hetzner Arch LUKS repository](https://github.com/kevinveenbirkenbach/hetzner-arch-luks) 🔐. (Learn more about [disk encryption](https://en.wikipedia.org/wiki/Disk_encryption) on Wikipedia.) +- **Deploy on an Encrypted Server** + You SHOULD install Infinito.Nexus on an encrypted server to prevent hosting providers from accessing end-user data. For a practical guide on setting up an encrypted server, refer to the [Hetzner Arch LUKS repository](https://github.com/kevinveenbirkenbach/hetzner-arch-luks) 🔐. (Learn more about [disk encryption](https://en.wikipedia.org/wiki/Disk_encryption) on Wikipedia.) -- **Centralized User Management & SSO** - For robust authentication and central user management, set up Infinito.Nexus using Keycloak and LDAP. - This configuration enables centralized [Single Sign-On (SSO)](https://en.wikipedia.org/wiki/Single_sign-on) (SSO), simplifying user management and boosting security. +- **Centralized User Management & SSO** + For robust authentication and central user management, you SHOULD set up Infinito.Nexus using Keycloak and LDAP. + This configuration enables centralized [Single Sign-On (SSO)](https://en.wikipedia.org/wiki/Single_sign-on), simplifying user management and boosting security. -- **Enforce 2FA and Use a Password Manager** - Administrators should also enforce [2FA](https://en.wikipedia.org/wiki/Multi-factor_authentication) and use a password manager with auto-generated passwords. We again recommend [KeePass](https://keepass.info/). The KeePass database can be stored securely in your Nextcloud instance and synchronized between devices. +- **Enforce 2FA and Use a Password Manager** + Administrators MUST enforce [2FA](https://en.wikipedia.org/wiki/Multi-factor_authentication) and SHOULD use a password manager with auto-generated passwords. We recommend [KeePass](https://keepass.info/). The KeePass database can be stored securely in your Nextcloud instance and synchronized between devices. -- **Avoid Root Logins & Plaintext Passwords** - Infinito.Nexus forbids logging in via the root user or using simple passwords. Instead, an SSH key must be generated and transferred during system initialization. When executing commands as root, always use `sudo` (or, if necessary, `sudo su`—but only if you understand the risks). (More information on [SSH](https://en.wikipedia.org/wiki/Secure_Shell) and [sudo](https://en.wikipedia.org/wiki/Sudo) is available on Wikipedia.) +- **Avoid Root Logins & Plaintext Passwords** + Infinito.Nexus MUST NOT allow logging in via the root user or using simple passwords. Instead, an SSH key MUST be generated and transferred during system initialization. When executing commands as root, always use `sudo` (or, if necessary, `sudo su`—but only if you understand the risks). (More information on [SSH](https://en.wikipedia.org/wiki/Secure_Shell) and [sudo](https://en.wikipedia.org/wiki/Sudo) is available on Wikipedia.) -- **Manage Inventories Securely** - Your inventories for running Infinito.Nexus should be managed in a separate repository and secured with tools such as [Ansible Vault](https://en.wikipedia.org/wiki/Encryption) 🔒. Sensitive credentials must never be stored in plaintext; use a password file to secure these details. +- **Manage Inventories Securely** + Your inventories for running Infinito.Nexus MUST be managed in a separate repository and secured with tools such as [Ansible Vault](https://en.wikipedia.org/wiki/Encryption) 🔒. Sensitive credentials MUST NEVER be stored in plaintext; use a password file to secure these details. -- **Reporting Vulnerabilities** - If you discover a security vulnerability in Infinito.Nexus, please report it immediately through [SECURITY.md](../../../SECURITY.md). We encourage proactive vulnerability reporting so that issues can be addressed as quickly as possible. - **DO NOT OPEN AN ISSUE.** +- **Reporting Vulnerabilities** + If you discover a security vulnerability in Infinito.Nexus, you MUST report it immediately through [SECURITY.md](../../../SECURITY.md). We encourage proactive vulnerability reporting so that issues can be addressed as quickly as possible. + **MUST NOT OPEN AN ISSUE.** --- diff --git a/docs/security/user.md b/docs/security/user.md index 801457138d..9fc82854c0 100644 --- a/docs/security/user.md +++ b/docs/security/user.md @@ -1,25 +1,26 @@ # Security Guidelines -Infinito.Nexus is designed with security in mind. However, while following our guidelines can greatly improve your system’s security, no IT system can be 100% secure. Please report any vulnerabilities as soon as possible. +Infinito.Nexus is designed with security in mind. However, while following our guidelines can greatly improve your system's security, no IT system can be 100% secure. Please report any vulnerabilities as soon as possible. -If you discover a security vulnerability in Infinito.Nexus, please report it through [SECURITY.md](../../../SECURITY.md). Do not open a public issue for security reports. +If you discover a security vulnerability in Infinito.Nexus, you MUST report it through [SECURITY.md](../../../SECURITY.md). You MUST NOT open a public issue for security reports. -For optimal personal security, we **strongly recommend** the following: +For optimal personal security, we RECOMMEND the following: -- **Use a Password Manager** - Use a reliable password manager such as [KeePass](https://keepass.info/) 🔐. (Learn more about [password managers](https://en.wikipedia.org/wiki/Password_manager) on Wikipedia.) KeePass is available for both smartphones and PCs, and it can automatically generate strong, random passwords. +- **Use a Password Manager** + You SHOULD use a reliable password manager such as [KeePass](https://keepass.info/) 🔐. (Learn more about [password managers](https://en.wikipedia.org/wiki/Password_manager) on Wikipedia.) KeePass is available for both smartphones and PCs, and it can automatically generate strong, random passwords. -- **Enable Two-Factor Authentication (2FA)** - Always enable 2FA whenever possible. Many password managers (like KeePass) can generate [TOTP](https://en.wikipedia.org/wiki/Time-based_One-Time_Password) tokens, adding an extra layer of security even if your password is compromised. +- **Enable Two-Factor Authentication (2FA)** + You MUST enable 2FA whenever possible. Many password managers (like KeePass) can generate [TOTP](https://en.wikipedia.org/wiki/Time-based_One-Time_Password) tokens, adding an extra layer of security even if your password is compromised. Synchronize your password database across devices using the [Nextcloud Client](https://nextcloud.com/) 📱💻. -- **Use Encrypted Systems** - We recommend running Infinito.Nexus only on systems with full disk encryption. For example, Linux distributions such as [Manjaro](https://manjaro.org/) (based on ArchLinux) with desktop environments like [GNOME](https://en.wikipedia.org/wiki/GNOME) provide excellent security. (Learn more about [disk encryption](https://en.wikipedia.org/wiki/Disk_encryption) on Wikipedia.) +- **Use Encrypted Systems** + You SHOULD run Infinito.Nexus only on systems with full disk encryption. For example, Linux distributions such as [Manjaro](https://manjaro.org/) (based on ArchLinux) with desktop environments like [GNOME](https://en.wikipedia.org/wiki/GNOME) provide excellent security. (Learn more about [disk encryption](https://en.wikipedia.org/wiki/Disk_encryption) on Wikipedia.) -- **Beware of Phishing and Social Engineering** - Always verify email senders, avoid clicking on unknown links, and never share your passwords or 2FA codes with anyone. (Learn more about [Phishing](https://en.wikipedia.org/wiki/Phishing) and [Social Engineering](https://en.wikipedia.org/wiki/Social_engineering_(security)) on Wikipedia.) +- **Beware of Phishing and Social Engineering** + You MUST verify email senders, avoid clicking on unknown links, and MUST NEVER share your passwords or 2FA codes with anyone. (Learn more about [Phishing](https://en.wikipedia.org/wiki/Phishing) and [Social Engineering](https://en.wikipedia.org/wiki/Social_engineering_(security)) on Wikipedia.) Following these guidelines will significantly enhance your personal security—but remember, no system is completely immune to risk. A tutorial how to setup secure password management you will find [here](https://blog.veen.world/blog/2025/04/04/%f0%9f%9b%a1%ef%b8%8f-keepassxc-infinito-cloud-the-ultimate-guide-to-cross-device-password-security/) + ---