New issue
Advanced search Search tips

Issue 776675 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

authpolicy: Allow turning off anonymizer in dev mode

Project Member Reported by ljusten@chromium.org, Oct 20 2017

Issue description

It'll help debugging.
 
Cc: rsorokin@chromium.org
CL:955643

To disable anonymizer, must be in dev mode with rootfs verification disabled. Just enter:

echo '{"disable_anonymizer":true}' > /etc/authpolicyd_flags

I didn't bother adding a crosh command or similar for that.
Status: Started (was: Assigned)
Project Member

Comment 3 by bugdroid1@chromium.org, Mar 15 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/4ae65349e501dc9486918daeeedc2256b870bdec

commit 4ae65349e501dc9486918daeeedc2256b870bdec
Author: Lutz Justen <ljusten@chromium.org>
Date: Thu Mar 15 22:27:38 2018

authpolicy: Add a way to disable log anonymizer

Adds a flag to disable the log anonymizer. This is strictly a debug only
flag. It can only be set on a Chromebook in dev mode and writeable
rootfs with

  echo '{"disable_anonymizer":true}' > /etc/authpolicyd_flags

The crosh command authpolicy_debug never sets it since this command is
available for everyone and in non-dev mode.

BUG= chromium:776675 
TEST=cros_run_unit_tests --board=amd64-generic --packages authpolicy
     Tested on device

Change-Id: I99106aa7d1efa6b8c8cfb6bd8c3411a2f7fd9606
Reviewed-on: https://chromium-review.googlesource.com/955643
Commit-Ready: Lutz Justen <ljusten@chromium.org>
Tested-by: Lutz Justen <ljusten@chromium.org>
Reviewed-by: Roman Sorokin <rsorokin@chromium.org>

[modify] https://crrev.com/4ae65349e501dc9486918daeeedc2256b870bdec/authpolicy/anonymizer.cc
[modify] https://crrev.com/4ae65349e501dc9486918daeeedc2256b870bdec/authpolicy/samba_interface.cc
[modify] https://crrev.com/4ae65349e501dc9486918daeeedc2256b870bdec/authpolicy/authpolicy_flags_unittest.cc
[modify] https://crrev.com/4ae65349e501dc9486918daeeedc2256b870bdec/authpolicy/anonymizer.h
[modify] https://crrev.com/4ae65349e501dc9486918daeeedc2256b870bdec/authpolicy/authpolicy_flags.cc
[modify] https://crrev.com/4ae65349e501dc9486918daeeedc2256b870bdec/authpolicy/proto/authpolicy_containers.proto
[modify] https://crrev.com/4ae65349e501dc9486918daeeedc2256b870bdec/authpolicy/anonymizer_unittest.cc

Status: Fixed (was: Started)
Status: Verified (was: Fixed)

Sign in to add a comment