Project

General

Profile

Actions

Bug #5740

closed

Secure template application

Added by Matthieu CERDA about 10 years ago. Updated over 2 years ago.

Status:
Released
Priority:
1 (highest)
Assignee:
Jonathan CLARKE
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

Sometimes, CFEngine fails to apply templates.

It happens on certain conditions:
  • The source template does not exist
  • The template expansion failed

We should do apply the templates in a local directory first, and then apply it on the final destination if the file is a least not empty, but doing this would make applying an empty file impossible...

For now, we should abort the template application if the source template is not here.

Actions

Also available in: Atom PDF