Skip to content
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

Beats preference pane for macOS #6923

Merged
merged 5 commits into from
May 31, 2018

Conversation

adriansr
Copy link
Contributor

This preference pane shows up in System Preferences and allows to manage installed beats.

Only works with Beats installed with packages from #6344

screen shot 2018-04-23 at 18 50 28

screen shot 2018-04-23 at 18 50 47

@adriansr
Copy link
Contributor Author

Part of #6053

<dict>
<key>FILEHEADER</key>
<string><![CDATA[
// Copyright (c) 2012–2018 Elastic <http://www.elastic.co>
Copy link
Member

@andrewkroh andrewkroh Apr 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have changed our header style a bit. You might be able to use elastic/go-licenser to apply the changes. If not you can grab the header from its golden testdata.

@andrewkroh
Copy link
Member

I think it would look nice to capitalize the product name used in "tab" labels.

adriansr added 5 commits May 30, 2018 12:13
This preference pane shows up in System Preferences and allows to manage
installed beats.
Added a make target to generate a package (.pkg) file that can be
installed or bundled along another installer. It can be optionally
signed for distribution.
Added new Elastic license boilerplate plus some missing headers.
Makes build to work when no internal developer certificate has been
created in XCode.
@adriansr adriansr force-pushed the feature/osx-pref-pane branch from 99b27e7 to c2b485a Compare May 30, 2018 05:16
@adriansr adriansr requested a review from mattapperson May 30, 2018 07:54
@adriansr
Copy link
Contributor Author

pinging @mattapperson for a review

From your original (pre-PR) review, you suggested a couple of changes:

  1. Yaml syntax highlighting and validation using https://github.com/raspu/Highlightr
  2. replace deprecated AuthorizationExecuteWithPrivileges with a privileged helper tool (SMJobBless)
  3. get rid of globals (this was addressed before submitting this PR)

However, after discussing it in our security area meeting it was decided to have an initial version asap and leave 1 and 2 for future improvements.

WDYT?

@mattapperson
Copy link

@adriansr I would say I am fine with that, though WWDC might force a quick turn around on 2 in a few days :)

Copy link
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I built (unsigned) and installed BeatsPrefPane.pkg locally. It all went well. I'll test again after having some Beat packages installed too.

@andrewkroh
Copy link
Member

screen shot 2018-05-31 at 12 50 31 am

@andrewkroh andrewkroh merged commit fe23344 into elastic:master May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants