You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/07/01 13:12:00 UTC

[jira] [Commented] (AMBARI-24228) Agent-side command-*.json files should optionally be deleted when no longer needed by the command

    [ https://issues.apache.org/jira/browse/AMBARI-24228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16529092#comment-16529092 ] 

Hudson commented on AMBARI-24228:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #9558 (See [https://builds.apache.org/job/Ambari-trunk-Commit/9558/])
[AMBARI-24228] Agent-side command-*.json files should optionally be (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=fb6bde26d2a874e6d04b5ced5d421fba8d9eb951])
* (edit) ambari-agent/src/test/python/ambari_agent/TestAmbariConfig.py
* (edit) ambari-agent/src/main/python/ambari_agent/AmbariConfig.py
* (edit) ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py


> Agent-side command-*.json files should optionally be deleted when no longer needed by the command
> -------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-24228
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24228
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent
>    Affects Versions: 2.1.0
>            Reporter: Robert Levas
>            Assignee: Robert Levas
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 2.7.0
>
>          Time Spent: 4h 50m
>  Remaining Estimate: 0h
>
> Agent-side _command JSON_ files ({{command-*.json}}, {{status_command.json}}) should optionally be deleted when no longer needed by the command.  One reason for this is to reduce the risk of leaking sensitive data stored at plaintext in the _command JSON_ files. 
> Currently the _command JSON_ files are stored on disk in /var/lib/ambari-agent/data.  These files may be cleared out over time, but there is a need to have them removed as soon as they are no longer needed.
> To do this, a retention policy may be defined so that the Ambari agent behaves accordingly:
> * {{keep}}
> ** No automatic removal is performed
> **  This is the default behavior  
> * {{remove}}
> ** The _command JSON_ file are remove as soon as the command completes
> * {{remove_on_success}} 
> ** The _command JSON_ files are remove as soon as the command *successfully* completes
> ** The _command JSON_ files are not removed on failure conditions



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)