A user asks:
Every time I try to remove a whitelist from access.vcl file the portal is reporting a commit failure.
The error message is
Validation error in configuration for proxy varnish varnish:Error: varnish:Message from VCC-compiler: varnish:Undefined acl example_whitelist, first reference:
The above problem is due to acl example_whitelist being referenced else where in the vcl, perhaps a different vcl file
std.ip(req.http.True-Client-IP, "0.0.0.0") ~ example_whitelist
When section.io Aperture portal saves/commits a file, it compiles the code and checks for any errors. So when you are editing one file and removing a function that is called from another file, it will throw up an error such as you see above.
If you need to edit multiple files and commit the changes at the same time, use
git and pull the repository down locally. You will find the repo link on the Advanced Config section of the portal.
Pull the repo down locally using the below command
git clone <repo link>
Edit the files that you wish to change
Push the changes up with the following commands
git commit -m "Short message explaining your changes."
git push origin <branch name>
You need to specify a branch name for the above command. This is usually
Productionbut can be different depending on which environment you are working one e.g.