Skip to content

Documentation updates - #5539

Open
TheSyscall wants to merge 14 commits into
mainfrom
documentation-updates
Open

Documentation updates#5539
TheSyscall wants to merge 14 commits into
mainfrom
documentation-updates

Conversation

@TheSyscall

@TheSyscall TheSyscall commented Jul 9, 2026

Copy link
Copy Markdown
Contributor
  • Add a general introduction to the hooks chapter explaining how to implement and register a hook, and how to define a new hook type using HookEssentials
  • Add missing config/security permission to the permissions table in the security chapter

@cla-bot cla-bot Bot added the cla/signed label Jul 9, 2026
@TheSyscall
TheSyscall force-pushed the documentation-updates branch from 9e072b5 to 60b4f57 Compare July 10, 2026 11:21
@TheSyscall
TheSyscall requested a review from jrauh01 July 17, 2026 11:18
@jrauh01
jrauh01 marked this pull request as draft July 22, 2026 11:34
@jrauh01

jrauh01 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Converted this to draft until #5537 is ready.

@jrauh01
jrauh01 force-pushed the documentation-updates branch from 7cc3b1f to f87aa8f Compare July 23, 2026 07:31
@jrauh01
jrauh01 removed their request for review July 23, 2026 07:32
@jrauh01 jrauh01 self-assigned this Jul 23, 2026
@jrauh01
jrauh01 force-pushed the documentation-updates branch from f87aa8f to e34aeee Compare July 23, 2026 07:46
@jrauh01 jrauh01 added this to the 2.14.1 milestone Aug 6, 2026
@jrauh01
jrauh01 marked this pull request as ready for review August 6, 2026 13:44

@lippserd lippserd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the changes requested, please address the following before this can be merged:

The password-policy documentation changes belong in #5537 instead of being made compatible with the current main branch here. They already document #5537's User argument and Security-page placement, and keeping them in this PR would require both PRs to remain independently correct while that contract is still under discussion. Please move these changes to #5537.

While moving them, please also use mb_strlen() so that the advertised eight-character minimum counts characters rather than bytes, and explicitly state that PasswordPolicyHook always runs regardless of the providing module's module/<module-name> permission.

Comment thread doc/03-Configuration.md Outdated
Comment thread doc/03-Configuration.md Outdated
Comment thread doc/60-Hooks.md Outdated
Comment thread doc/60-Hooks.md Outdated
Comment thread doc/60-Hooks.md Outdated
Comment thread doc/60-Hooks.md
@jrauh01
jrauh01 force-pushed the documentation-updates branch from 16f6ef8 to 9ea6b26 Compare August 7, 2026 11:28
@jrauh01
jrauh01 requested a review from lippserd August 7, 2026 11:42
Comment thread doc/03-Configuration.md Outdated

This configuration is stored in the `config.ini` file in `/etc/icingaweb2`.

### Password Policy Configuration <a id="configuration-security-password-policy"></a>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we move this to the modernize password policy PR as well?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed. Will be added in password policy PR.

Comment thread doc/03-Configuration.md Outdated
lippserd and others added 12 commits August 12, 2026 09:32
Icinga Web falls back to enabled stack traces when the setting is omitted,
and the general configuration form initializes the option enabled. The old
documented default described a value that changes behavior instead of the
default behavior.
The application reads this global setting when user preferences inherit the
system value. Listing it in the general configuration reference makes the
available system default visible to administrators.
`module_path` accepts a path list interpreted by the underlying platform.
The reference should not imply Unix-style colons are valid everywhere.
The logger accepts the values exposed by `Logger::$levels`. `INFORMATION`
was documented but is not a supported configuration value, while `INFO` is
the value emitted by the UI and logger constants.

Syslog and PHP logging both use the configured application prefix, with
`icingaweb2` as the fallback. The syslog writer also falls back to the
`user` facility, so the option table should state the same defaults as the
runtime code.
`default_domain` is configured in the main application config, but the
central `config.ini` reference did not list it. Keep the authentication page
focused on the domain workflow and point readers to the option reference.
Cookie attributes can be set globally through `config.ini`, but the general
configuration reference did not describe those accepted keys. Documenting
them avoids requiring administrators to discover the settings from code.
Use code formatting for the theme identifier and link the strict CSP option
back to the canonical general configuration section. Also fix the possessive
in the CSP paragraph.
Add missing `application/migrations`, `application/sessions`, and
`config/security` permissions to the permissions table.
Add an introduction to the hooks chapter covering how to implement a
hook and how to register it in `run.php`.
Document how to define a custom hook type using `HookEssentials`,
including the conventional file location, `getHookName()`, and
`isAlwaysRun()`.
Add password_policy to the security configuration section and convert
the Content Security Policy table from grid-style markdown to the
simpler pipe format used elsewhere in the document.
@jrauh01
jrauh01 force-pushed the documentation-updates branch from fda33f6 to 3f14c38 Compare August 12, 2026 07:36
jrauh01 and others added 2 commits August 12, 2026 09:39
Co-authored-by: Eric Lippmann <eric.lippmann@icinga.com>
@jrauh01
jrauh01 requested a review from lippserd August 12, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants