Bug #11449
closedAllow variable as directive parameters in regexp validated inputs
Description
Host configuration technique only allow usage of values to be exact ip (regexp)
This regexp should allow variable to be used (ie sys.ipv4)
Updated by Vincent MEMBRÉ about 7 years ago
File to modify is : ./techniques/systemSettings/networking/hostsConfiguration/2.0/metadata.xml
Variable is : HOSTS_IP
Updated by Vincent MEMBRÉ about 7 years ago
This problem should be resolved on a higher level, we don't want to fix every regexp field in every technique and maintain that.
We want to change how we check regex constraint by checking if the value contains a variable or not and accepting if this the case.
All possible case:
- Only Value: 192.168.42.1
- Only Variable: ${sys.ipv4}
- Mix of Variable and Value: 192.168.${node.properties[subnet]}.1
Updated by Vincent MEMBRÉ about 7 years ago
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ about 7 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/1757
Updated by Nicolas CHARLES about 7 years ago
ticket name & commit name should probably be changed to "don't try to validate by regex entry that contains variables"
Updated by Vincent MEMBRÉ about 7 years ago
- Subject changed from Hosts technique does not allow to use $sys.ipv4 or any other variable to Allow variable as directive parameters in regexp validated inputs
Updated by Vincent MEMBRÉ about 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|d26155df5c9793e1b8550d6b09d728505b045d49.
Updated by Vincent MEMBRÉ about 7 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.1.8 and 4.2.1 which were released today.
- 4.1.8: Announce Changelog
- 4.2.1: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/
Updated by François ARMAND over 4 years ago
- Related to User story #7006: Parameter validation in Rudder should accept rudder variables ( ${ } ) added