Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework config file handling #278

Merged
merged 2 commits into from
Oct 6, 2017
Merged

Rework config file handling #278

merged 2 commits into from
Oct 6, 2017

Commits on Oct 6, 2017

  1. Rework config file handling

    These changes allow for a local rules file that will be preserved across
    upgrades and allows the main rules file to be overwritten across upgrades.
    
    - Move all config/rules files below /etc/falco/
    - Add a "local rules" file /etc/falco/falco_rules.local.yaml. The intent
      is that it contains modifications/deltas to the main rules file
      /etc/falco/falco_rules.yaml. The main falco_rules.yaml should be
      treated as immutable.
    - All config files are flagged so they are not overwritten on upgrade.
    - Change the handling of the config item "rules_file" in falco.yaml to
      allow a list of files. By default, this list contains:
      [/etc/falco/falco_rules.yaml, /etc/falco/falco_rules.local.yaml].
    
    Also change rpm/debian packaging to ensure that the above files are
    preserved across upgrades:
    
    - Use relative paths for share/bin dirs. This ensures that when packaged
      as rpms they won't be flagged as config files.
    - Add CMAKE_INSTALL_PREFIX to FALCO_ENGINE_LUA_DIR now that it's relative.
    - In debian packaging, flag
      /etc/falco/{falco.yaml,falco_rules.yaml,falco_rules.local.yaml} as
      conffiles. That way they are preserved across upgrades if modified.
    - In rpm packaging when using cmake, any files installed with an
      absolute path are automatically flagged as %config. The only files
      directly installed are now the config files, so that addresses the problem.
    
    Add CMAKE_INSTALL_PREFIX to lua dir.
    mstemm committed Oct 6, 2017
    Configuration menu
    Copy the full SHA
    8641f3c View commit details
    Browse the repository at this point in the history
  2. Fully remove package.

    mstemm committed Oct 6, 2017
    Configuration menu
    Copy the full SHA
    5c09ef2 View commit details
    Browse the repository at this point in the history