-
Bug
-
Resolution: Done
-
Normal
-
None
-
4.11.0
-
Low
-
False
-
-
This is a clone of issue OCPBUGS-467. The following is the description of the original issue:
—
Description of problem:
In 4.11, PolicyGen allows the user to override the ZTP predefined policy evaluation intervals. The ACM policy evaluation interval can be overridden in PGT (per template or per sourceFiles object).
ACM accepts the string format of the Duration type. However, PolicyGen does not validate the values defined in PGT and it simply passes the user supplied value to ACM. PoliyGen should implement the same validation to prevent the user entering an invalid duration string
Version-Release number of selected component (if applicable): 4.11
How reproducible:
Steps to Reproduce:
1. Create a PGT with an invalid time duration string in evaluationInterval fields
2. Run policygenerator binary with this PGT
3. Expect an error
Actual results:
Expected results:
No error returned
Additional info:
- blocks
-
OCPBUGS-15422 PolicyGen does not validate the ACM policy evaluation intervals
- Verified
- clones
-
OCPBUGS-467 PolicyGen does not validate the ACM policy evaluation intervals
- Closed
- is blocked by
-
OCPBUGS-467 PolicyGen does not validate the ACM policy evaluation intervals
- Closed
- is cloned by
-
OCPBUGS-15422 PolicyGen does not validate the ACM policy evaluation intervals
- Verified
- is depended on by
-
OCPBUGS-13659 User can't set evaluationInterval via PolicyGenTemplate
- Verified
- links to
- mentioned on