Project

General

Profile

Actions

Bug #27363

closed

Constraint doesn't allow to change variable

Bug #27363: Constraint doesn't allow to change variable

Added by Nicolas CHARLES 9 months ago. Updated 7 months ago.

Status:
Released
Priority:
0 (blocking)
Category:
rudderc
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
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


Subtasks 1 (0 open1 closed)

Bug #27428: Missing migration for existing directives with the bad select input identifierReleasedClark ANDRIANASOLOActions

Updated by François ARMAND 9 months ago Actions #1

  • Priority changed from To review to 1 (highest)

Updated by François ARMAND 9 months ago Actions #2

  • Assignee set to Clark ANDRIANASOLO

Updated by Clark ANDRIANASOLO 9 months ago Actions #3

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",

Updated by François ARMAND 9 months ago Actions #4

  • Priority changed from 1 (highest) to 0 (blocking)

Updated by Alexis Mousset 9 months ago Actions #5

clipboard-202507311730-y68tg.png

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.

Updated by Alexis Mousset 9 months ago Actions #6

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

Updated by Alexis Mousset 9 months ago Actions #7

  • Target version set to 8.3.4

Updated by Alexis Mousset 9 months ago Actions #8

  • Status changed from New to In progress

Updated by Alexis Mousset 9 months ago Actions #9

  • 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

Updated by Alexis Mousset 9 months ago Actions #10

  • Assignee changed from François ARMAND to Clark ANDRIANASOLO

Updated by Alexis Mousset 9 months ago Actions #11

  • Status changed from Pending technical review to Pending release

Updated by François ARMAND 9 months ago Actions #12

  • Subtask #27428 added

Updated by Nicolas CHARLES 7 months ago Actions #13

  • Fix check changed from To do to Checked

Updated by Vincent MEMBRÉ 7 months ago Actions #14

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 8.3.4 which was released today.

Actions

Also available in: PDF Atom