google / google/grr

Parameter expansion with filters (certificates)

Open
#688 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.1k
Forks
796
PR merge metrics
No merged PRs in 30d

Description

Hello,

Context:
brand new grr server installed from deb (ubuntu 16.04, grr 3.2.4-6), working perfectly well as is.

As we have our own pki, we would like to manage the keys/certificates ourselves. The best way to easily configure that (especially with a puppet server) would be to keep the certificates outsides the configuration using parameter expansion and filtering.

Exactly as mentioned here:
https://grr-doc.readthedocs.io/en/latest/maintaining-and-tuning/configuration/filtering.html
and
https://grr-doc.readthedocs.io/en/latest/maintaining-and-tuning/key-management/which-keys-and-how.html#code-signing-and-ca-keys

So, for example, we have that in our configuration:
CA.certificate: "%(/etc/grr/ssl/CA.certificate|file)"

And the properly formatted pem in "/etc/grr/ssl/CA.certificate"

However, doing that lead to not being able to repackage client, as it always fails with the following error:

ERROR:2019-05-08 15:34:30,004 1698 MainProcess 139806272059136 MainThread build:403] Build Config Error: CA certificate missing from config.
ERROR:2019-05-08 15:34:30,014 1698 MainProcess 139806272059136 MainThread repacking:192] Repacking template /usr/share/grr-server/grr-response-templates/templates/grr_3.2.4.6_i386.deb.zip failed:

Is there by any chance something we missed in hte configuration or is this by design?

Regards

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.