Project

General

Profile

Actions

Architecture #9315

closed

User story #1808: Add an Audit mode to Rudder: only check properties, no modification on nodes

User story #9273: Process audit reports and adapt compliance displaying for audit mode

Update DB schema of expected reports to store policy mode

Added by François ARMAND about 8 years ago. Updated about 8 years ago.

Status:
Released
Priority:
2
Category:
Web - Compliance & node report
Target version:
Effort required:
Name check:
Fix check:
Regression:

Description

The current solution implemented in parent task #9273 retrieve policy mode information when compliance is computed. That mean that is anything changed between the moment the agent received its policies and the moment the server is processing reports, then everything is false.

So we need to store policy mode (and it would be better to also store node run related information like frequency) along with expected reports.

It means that either we extends expectedReports and expectedReportsNode, and adapt the logic which correctly update each part when needed, or we create a new "node configuration" table with the node configuration information.

This ticket is here to explore the second option. So let's detail a little that new NodeConfiguration table columns:

  • nodeId : the node IDs
  • nodeConfigId : unique identifier for a node config version (reported in run)
  • startDate : date when that configuration was created
  • endDate : date when that configuration was closed (cause: node deleted, new config available,
  • configuration: a JSON data structure with:
    • node system configuration: policy mode, run period, perhaps in the future other things
    • node expected configuration: list of expected rules, directives, components, values. The structure of data in that part should match the structure of RuleNodeExpectedReports

Subtasks 2 (0 open2 closed)

User story #9380: Migration script for adding table nodeconfigurationsReleasedNicolas CHARLES2016-10-17Actions
Architecture #9417: Correct test on expected reports and clean codeReleasedVincent MEMBRÉ2016-10-18Actions

Related issues 2 (0 open2 closed)

Related to Rudder - Bug #9331: Compliance report in audit mode is broken for system techniquesRejectedFrançois ARMAND2016-10-12Actions
Related to Rudder - Bug #6167: When we reduce the run interval of nodes, "no data" may be wrongly reportedRejectedJonathan CLARKE2015-01-22Actions
Actions

Also available in: Atom PDF