-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change install dir to Program Files #209
Conversation
@@ -150,40 +147,19 @@ static void Main(string[] args) | |||
|
|||
var packageContents = new List<WixEntity> | |||
{ | |||
new DirFiles(Path.Combine(opts.PackageInDir, MagicStrings.Files.All), path => | |||
new Files(Path.Combine(opts.PackageInDir, MagicStrings.Files.All), path => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the change responsible for choosing all files including subfolders (recursive), instead of just the parent top folder
Before this PR, command line example:
With this PR:
@cmacknz , few questions:
With this PR, on my local machine, all files are copied to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Also tested on a Win2019 server. Install worked fine, and no data in %PROGRAMDATA%
So. We just stumbled upon this as 8.12 has been released. This is a big breaking change, especially for organizations that use some sort of provisioning process (SaltStack). Yet there is NO mention of it in the changelogs. https://www.elastic.co/guide/en/beats/libbeat/current/release-notes-8.12.0.html The security issue also seems to be hidden so we don't even know what the problem is. I've never heard of ProgramData being a security issue, so this just seems.. confusing? |
@Sxderp hello 👋 +1 on the release notes, we'll get those updated ASAP |
We use Salt to deploy our filebeat / metricbeat configurations.
Now that C:\ProgramData is no longer used the services are not picking up the configuration and are just crashing. I should also note that this also broke our existing installs. The config files from C:\ProgramData were not migrated and our hosts are crashing with config files not found. The new paths also make it /very/ difficult to deploy the configuration en-mass. The beats use the version numbers within their paths. In order to deploy the configuration we now need to know the exact version that is being installed and dynamically update the filepath. That adds another layer of headache trying to do that during orchestration. I'm also not thrilled with the idea that configurations may break on every new upgrade. As I said, the configurations were not migrated to C:\Program Files. If a new version of filebeat is installed, with a new version path, are we going to lose the configuration from the previous version? Can we get a reason on why C:\ProgramData is considered "insecure"? It's used by many programs and even Microsoft. |
@Sxderp thanks for the continued feedback. And then you won't have the version in the path. Can you confirm this will work for you? |
That should work for us, assuming it's for all the beats and not just winlogbeat. Having an unversioned install location as the default would be better. |
would it be possible to add where we can point the installer to our own custom config path folder of our choosing during install? this way, any config management of said configs should be a breeze, even if the version exists in the i.e. |
yes, it's here: |
This PR mitigates a security issue described here.
C:\ProgramData