Merge lp://staging/~jcsackett/launchpad/remove-duplicate-settings into lp://staging/launchpad

Proposed by j.c.sackett
Status: Merged
Approved by: j.c.sackett
Approved revision: no longer in the source branch.
Merged at revision: 12897
Proposed branch: lp://staging/~jcsackett/launchpad/remove-duplicate-settings
Merge into: lp://staging/launchpad
Prerequisite: lp://staging/~jcsackett/launchpad/add-security-audit-utility
Diff against target: 306 lines (+143/-27)
3 files modified
database/schema/security.cfg (+5/-27)
lib/lp/scripts/utilities/tests/test_audit_security_settings.py (+26/-0)
utilities/audit-security-settings.py (+112/-0)
To merge this branch: bzr merge lp://staging/~jcsackett/launchpad/remove-duplicate-settings
Reviewer Review Type Date Requested Status
Gavin Panella (community) Approve
Review via email: mp+58529@code.staging.launchpad.net

Commit message

[r=allenap][bug=765207] Removes duplicate settings from security.cfg

Description of the change

Summary
=======
Investigating errors occuring in some cronscripts, duplicate security settings were found in database/schema/security.cfg. This has the effect of removing permissions that are needed for some scripts, resulting in failures.

A previous branch created a utiility that identified these duplicates. This branch removes the dupes under the advisement that in each case we want to keep the setting that provides the broadest permissions for the cronscripts.

Preimplementation
=================
Spoke with Curtis Hovey about which settings to keep.

Implementation
==============
database/schema/security.cfg
----------------------------
Removed duplicate settings within each configuration block (e.g. a section beginning with [$SECTION].

Tests
=====
Given the number of things removed, ec2 is the only viable test. This branch has already been submitted.

QA
==
qa-untestable

Lint
====
= Launchpad lint =

Checking for conflicts and issues in changed files.

Linting changed files:
  database/schema/security.cfg
  lib/lp/scripts/utilities/tests/test_audit_security_settings.py
  utilities/audit-security-settings.py

database/schema/security.cfg
    740: Line exceeds 78 characters.
    741: Line exceeds 78 characters.
    742: Line exceeds 78 characters.
    768: Line exceeds 78 characters.
    772: Line exceeds 78 characters.
    827: Line exceeds 78 characters.
    842: Line exceeds 78 characters.
    843: Line exceeds 78 characters.
    859: Line exceeds 78 characters.
    860: Line exceeds 78 characters.
    863: Line exceeds 78 characters.
    864: Line exceeds 78 characters.
    865: Line exceeds 78 characters.
    917: Line exceeds 78 characters.
    918: Line exceeds 78 characters.
    919: Line exceeds 78 characters.
    947: Line exceeds 78 characters.
    1029: Line exceeds 78 characters.
    1039: Line exceeds 78 characters.
    1040: Line exceeds 78 characters.

Errors in security.cfg are a result of the cfg format.

To post a comment you must log in.
Revision history for this message
Gavin Panella (allenap) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.