juju log files should not be world readable

Bug #1286518 reported by Kapil Thangavelu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Medium
Katherine Cox-Buday

Bug Description

juju default logs in /var/log/juju are world readable, charms can log sensitive information so a better default would be 600

Tags: logging
description: updated
Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
tags: added: logging
Changed in juju-core:
importance: High → Medium
Changed in juju-core:
assignee: nobody → Katherine Cox-Buday (cox-katherine-e)
status: Triaged → In Progress
milestone: none → next-stable
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: next-stable → 1.21-alpha1
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
Revision history for this message
Mario Splivalo (mariosplivalo) wrote :

Would it be possible to have local provider world-readable log files? Or at least set them to adm (or juju?) group, and have them group-readable?
Local provider is used mainly for testing charm development and it's cumbersome to type in sudo password all the time, or to have root terminal permanently open.
Or, maybe add a juju environment configuration option so that one can 'ease up' on the default (for instance, default chmod is 600, but user can change that to 640 or 644).

Revision history for this message
Matt Bruzek (mbruzek) wrote :

With this change landing now I have to use sudo to look at the log files.

As a charmer I often look at the unit-charm-name-0.log file for more details of what the charm is doing.

The log file change makes it more difficult for charm authors to look at the logs on their local system to debug the charm.

Could we do better with some ownership or group changes?

Revision history for this message
Kapil Thangavelu (hazmat) wrote : Re: [Bug 1286518] Re: juju log files should not be world readable

once debug-log gets unbroken that might be viable as go to resource for log
info, else group usage might help. for local its a bit unclear though.

On Tue, Sep 23, 2014 at 12:26 PM, Matt Bruzek <email address hidden>
wrote:

> With this change landing now I have to use sudo to look at the log
> files.
>
> As a charmer I often look at the unit-charm-name-0.log file for more
> details of what the charm is doing.
>
> The log file change makes it more difficult for charm authors to look at
> the logs on their local system to debug the charm.
>
> Could we do better with some ownership or group changes?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1286518
>
> Title:
> juju log files should not be world readable
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju-core/+bug/1286518/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.