Project

General

Profile

Actions

Bug #27363

open

Constraint doesn't allow to change variable

Added by Nicolas CHARLES 8 days ago. Updated 2 days ago.

Status:
Pending release
Priority:
0 (blocking)
Category:
rudderc
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

Following code

    parameters = [
        rudder.TechniqueParam {
             id = "d309bcc3-0200-44eb-8310-d15c0b7da191" 
             name = "selinux_mode" 
             description = "SELinux should run in one of two modes: permissive, or enforcing." 
             default = "permissive" 
                constraints = {select = [
                rudder.SelectConstraint {value = "permissive"}
                rudder.SelectConstraint {value = "enforcing"}
            ]}
        }
    ]

does see that there is a contraint

however, selecting enforcing doesn't work: it always generate code with permissive (the default value)


Files

Actions #1

Updated by François ARMAND 5 days ago

  • Priority changed from To review to 1 (highest)
Actions #2

Updated by François ARMAND 5 days ago

  • Assignee set to Clark ANDRIANASOLO
Actions #3

Updated by Clark ANDRIANASOLO 4 days ago

The file /var/rudder/cfengine-community/inputs/rudder-directives.cf should contain cis_rhel9("targeted","enforcing", but even after updating the properties and generating policies, it only contains the default value : cis_rhel9("targeted","permissive",

Actions #4

Updated by François ARMAND 2 days ago

  • Priority changed from 1 (highest) to 0 (blocking)
Actions #5

Updated by Alexis Mousset 2 days ago

The problem comes from rudderc which does not set the right paramter id.

In the case of selects it uses the name instead of the id.

Actions #6

Updated by Alexis Mousset 2 days ago

  • Project changed from 96 to Rudder
  • Category set to rudderc
  • Assignee changed from Clark ANDRIANASOLO to Alexis Mousset
  • Target version deleted (8.3)
Actions #7

Updated by Alexis Mousset 2 days ago

  • Target version set to 8.3.4
Actions #8

Updated by Alexis Mousset 2 days ago

  • Status changed from New to In progress
Actions #9

Updated by Alexis Mousset 2 days ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/6551
Actions #10

Updated by Alexis Mousset 2 days ago

  • Assignee changed from François ARMAND to Clark ANDRIANASOLO
Actions #11

Updated by Alexis Mousset 2 days ago

  • Status changed from Pending technical review to Pending release
Actions

Also available in: Atom PDF