Skip to content

Add security specific documentation and OWASP event logging#315

Open
matperin wants to merge 4 commits intocanonical:mainfrom
matperin:security-docs
Open

Add security specific documentation and OWASP event logging#315
matperin wants to merge 4 commits intocanonical:mainfrom
matperin:security-docs

Conversation

@matperin
Copy link
Contributor

@matperin matperin commented Feb 27, 2026

Include security documentation in public product documentation for SSDLC compliance. The added documentation also expands on hardening scenarios.

This PR also includes the addition of OWASP event logging, required for SSDLC compliance as well.

@matperin matperin requested a review from a team as a code owner February 27, 2026 14:56
@matperin matperin marked this pull request as draft February 27, 2026 14:56
@matperin matperin changed the title docs: Add security specific documentation Add security specific documentation and OWASP event logging Mar 3, 2026
matperin added 3 commits March 4, 2026 10:37
Include security documentation in public product documentation for SSDLC compliance.
The added documentation also expands on hardening scenarios.

Signed-off-by: Matteo Perin <matteo.perin@canonical.com>
Add a securitylog package that emits structured INFO-level log entries
following the OWASP Application Logging Vocabulary via the existing
lxd/shared/logger framework. Every entry carries fixed fields (security=true,
category, event) merged with call-site context.

Covered events:
[AUTHN] authn_token_created: join token generated (microovn cluster add)
[AUTHN] authn_password_changed: CA or service certificate (re)issued
[AUTHZ] authz_admin: cluster join / leave, service enable / disable,
configuration set / delete, CA regeneration
[SYS] sys_startup: daemon start hook
[SYS] sys_shutdown: node departing the cluster

These changes are part of SSDLC compliance for microovn.

Signed-off-by: Matteo Perin <matteo.perin@canonical.com>
Add a "Security event logging" section to security documentation
regarding the structured fields present on every log entry, a table of
covered events (AUTHN / AUTHZ / SYS) with realistic example log lines, and a
table of OWASP events that are intentionally not implemented along with the
architectural reason for each.

This is a required artifact for microovn SSDLC compliance.

Signed-off-by: Matteo Perin <matteo.perin@canonical.com>
Add a --disable-security-logging flag to microovnd that suppresses all
output from the securitylog package.

The snap wrapper (snapcraft/commands/daemon.start) reads the snap
configuration key "security-logging" via snapctl. When the value is
"false" it appends --disable-security-logging to the microovnd command
line.

A snap configure hook (snap/hooks/configure) validates that the value
is either "true", "false", or unset, and returns an error otherwise.

Added socumentation describes the snap option and how to set it.

Signed-off-by: Matteo Perin <matteo.perin@canonical.com>
@matperin matperin marked this pull request as ready for review March 9, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant