-
Notifications
You must be signed in to change notification settings - Fork 153
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
Admin docs contains deprecated info #74
Comments
Hi! Quick question - how did you install the GRR server? From PIP or from a DEB package? If you need to repack the client, then you likely need "grr_client_build repack" command, not "buildandrepack". You don't need to provide grrd.yaml or anything like this - grr_client_build will use the current config of the GRR server. Here's an example of repacking a client with a grr server installed from PIP:
|
Ah, sorry for not being clear, "the (bash) script" that installs GRR on ubuntu Xenial using the DEB package.
|
Did you run "grr_config_updater initialize" on a machine where you're repacking the clients? Is GRR service actually running on this machine? |
Yes, I'm pretty sure the DEB package calls that command in the postinstall script, because then I run "grr_config_updater initialize" manually I just get the same questions I answered during the installation using "install_script_ubuntu.sh".
Anyway, I ran thru "grr_config_updater initialize" just to be sure, and tried to issue the repacking command once again, but with the same result:
GRR is running AFAICT:
|
I reproduced the issue. Seems that grr_client_build loads secondary configuration file from /usr/share/grr-server/install_data/etc/server.local.yaml and not from /etc/grr/server.local.yaml. /etc/grr/server.local.yaml is the deployment-specific configuration file that contains configuration parameters necessary to repack the client: Client.server_urls, Client.executable_signing_public_key and CA. This behavior seems to be different from grr_client_build's behavior when GRR server is installed from pip. I'll take a closer look at it. In the meantime, this should work:
|
Yes finally repack works, thanks for looking into this. Hence, my initial cli command was using option "buildandrepack" (like in the email thread above). But by adding My buildconfig.yaml (additionally) contains:
I tested adding However, it seems that it has no knowledge of the context (I guess it doesn't consult buildconfig.yaml)
Is doing multiple template repacking and adding labels not supported anymore? |
It is very much supported. Will take a look into that and get back to you. |
I had to experiment a bit, since the version of GRR released as a DEB package is pretty old and the way repacking works is changed in HEAD. The command above should be:
Note that "Context" is actually a part of the context name, so you have to specify it as "Customer1 Context". But, basically instructions in the Google Groups thread you linked should work (including repacking with multiple contexts), provided that you use --secondary_configs argument with grr_client_build. I.e.:
Please tell me if this works for you. |
Thanks. Both commands works in the sense that they actually repack client(s), but none of them produce repacked client with labels :(
After installing this client it shows up in GRR, but without a label. Second command only produces "AllPlatforms_Context" (which what you get default anyway). No (custom) contexts (with labels) are generated. I tried adding --context "Customer1 Context", but that doesn't seems be caught, and again "AllPlatforms_Context" is used:
|
Just checking - did you add a list of contexts to /usr/share/grr-server/install_data/etc/buildconfig.yaml like this?
Can you please also send the output of your command with the --verbose flag? |
No, I put that in /etc/grr/buildconfig.yaml, but after I copied the file to /usr/share/grr-server/install_data/etc/buildconfig.yaml it finally works! (btw. Why having the same (redundant) config at two places?) |
Thx for the help sorting this issue out |
Hey GRR Guys! |
Hi! We have a bunch of publications that may be of interest here: https://github.com/google/grr-doc/blob/master/publications.adoc |
Hi,
We're getting ready to deploy GRR on a larger scale, but repacking clients as described in the docs is not working because the docs are deprecated:
https://github.com/google/grr-doc/blob/master/admin.adoc#repacking-clients-with-custom-labels-multi-organization-deployments
(many of the CLI options are either renamed or doesn't exists anymore)
I also found this thread that describes the a newer way of doing it which actually is sane to the latest stable GRR release (3.1.0.2)
https://groups.google.com/forum/#!searchin/grr-users/repacking|sort:relevance/grr-users/PUpiGT9zPuw/7G5OM-yLQwAJ
For example:
root@grr:~# grr_client_build buildandrepack --template /usr/share/grr-server/grr-response-templates/templates/
Building installers for: ['AllPlatforms Context']
Repacking AllPlatforms Context as grr with labels: []
Repacking template: /usr/share/grr-server/grr-response-templates/templates/grr_3.1.0.2_amd64.deb.zip
Loading configuration from /tmp/tmp5If28L/grrd.yaml
Configuration writeback is set to /tmp/tmp5If28L/grrd.yaml
Writing back configuration to file /tmp/tmp5If28L/grrd.yaml
Build Config Error: Empty Client.server_urls
Build Config Error: Missing Client.executable_signing_public_key.
Build Config Error: CA certificate missing from config.
Repacking template /usr/share/grr-server/grr-response-templates/templates/grr_3.1.0.2_amd64.deb.zip failed: Bad configuration generated. Terminating.
Failed to repack /usr/share/grr-server/grr-response-templates/templates/grr_3.1.0.2_amd64.deb.zip.
Complete, installers for ['AllPlatforms_Context'] are in /usr/share/grr-server/executables/2017-04-24T20:55:15Z/linux_amd64_deb
I can't find grrd.yaml in the docs nor in the grr installations (done with the provided script)
The text was updated successfully, but these errors were encountered: