Ksconf

Latest version: v0.13.9

Safety actively analyzes 638430 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 12

0.9.1

~~~~~~~~~~~~~~~~~~~~~~~~~~
- Ksconf now tries harder to preserve file modification times. This is supported in ``merge``, ``combine`` and ``package`` commands.
Specifically, merged ``.conf`` files and concatenated files will keep the most recent modification time in the destination.
This should make the output of ``combine`` and ``package`` (by extension) more deterministic in many scenarios.

0.9

----------

**Highlights:**

* Last version to support Python 2! It's time.


**API Changes**

- Removed :py:func:`~ksconf.util.file.match_bwlist`
:py:class:`~ksconf.filter.FilteredList` and derived classes should be used instead.
- Updated interface for :py:class:`~ksconf.conf.delta.compare_cfgs` and :py:class:`~ksconf.conf.delta.compare_stanzas`.
(1) Removed the ``preserve_empty`` parameter and
(2) Replaced the awkwardly named ``allow_level0`` parameter with a new ``replace_level`` attribute that can be set to ``global``, ``stanza`` or ``key``.
This new option can be used to control the level of detail in the output.

0.9.0

~~~~~~~~~~~~~~~~~~~~~~~~~~

Features & Enhancements:

- Add new ``--keep-existing`` option for ``ksconf combine`` to preserve certain files that exist within the target directory but not within any source.
Similarly the new ``--disable-cleanup`` option will prevent any files from being removed.
This is useful, for example if using ``ksconf combine`` to write apps into ``deployment-apps`` where Splunk automatically creates a local ``app.conf`` file, and the deletion and recreation of the file can result in unnecessary app re-deployments.
These new options can be used together; for example, one useful pattern is to use ``--disable-cleanup`` to block all removals while perfecting/testing ``--keep-existing`` patterns.
- Add support for previewing stanza changes with ``ksconf promote`` by combining ``--stanza X`` and ``--summary`` options at the same time. Thanks to guilhemmarchand for the suggestion. (`89 <https://github.com/Kintyre/ksconf/issues/89>`__)
- New CLI args for ``ksconf diff``.
(1) New ``--detail`` option to specify how to handle certain 'replace' levels which impacts the way certain changes are represented.
(2) New ``--format json`` for a more parsable output format.
Note: This json format shouldn't be considered stable at this time. If you have ideas about how this could be used, please reach out.
- Allow enabling/disabling TTY colors via environmental variable. The new ``--disable-color`` option will disable color, or to disable more widely, add something like ``export KSCONF_TTY_COLOR=off`` to your bashrc profile or Windows environment variables.

Bug fixes:

- Fixed layer detection bugs for ``dir.d`` mode for layers. (1) Layers that weren't immediately under the source directory were not detected, and
(2) layers existing beyond a symlink were not detected.
This change targeted for ``ksconf combine`` but may fix other similar issues.
- Fixed `91 <https://github.com/Kintyre/ksconf/issues/91>`__. where ``ksconf diff`` wouldn't correctly handle empty stanzas in the second input file
(Reversing the order would sometimes worked to avoid the issue).
This was resolved by enabling some improved empty stanza handling in the conf comparison algorithms that were updated back in 0.7.10, but never globally applied. This has been resolved.

Documentation improvements

- New git tip: Use a ``gitdir:`` pointer to relocate the ``.git`` dir to avoid replicating it when a directory like ``master-apps`` is a git working copy.
- Additional quick use case in the cheatsheet page.
Demonstrate how ksconf could be used to list all "apps" present on a deployment server from the ``serverclass.conf`` file.

API Change:

- Replaced use of ``match_bwlist()`` with the :py:class:`~ksconf.filter.FiltedListSplunkGlob` class, which allows old code to be cleaned up and technically, there's some expanded capabilities because of this (like many filters now supporting ``file://filter.txt`` type syntax, but this hasn't been documented and may be left as an Easter egg; because who reads changelogs?)
- Dropped ``tty_color()`` which had already been replaced with the ``TermColor`` class.

0.8.7

~~~~~~~~~~~~~~~~~~~~~~~~~~
- Support combining ``*.conf.spec`` files in ``ksconf combine``, thus allowing ``README.d`` to be it's own layer.
- Fixed potential ``unarchive`` issue with older version of git where ``git add --all DIR`` is more explicit, but equivalent to the modern day, ``git add DIR``.

0.8.6

~~~~~~~~~~~~~~~~~~~~~~~~~~
- Fixed ``install.py`` Splunk app CLI install helper script to support referencing a specific version of Python. This is needed on Splunk 8.0 if you'd like to use Python 3 (or Splunk 8.1 if you want to use Python 2.7, but please don't.) I suppose this would also work with using a custom Python interpreter other than the ones Splunk ships with, but then why not install with ``pip``, right? (Thanks to guilhem.marchand for bringing this issue to my attention.)
- Updated docs regarding changes to the use of ``install.py`` and fixed a bunch of spelling mistakes and other minor doc/comment tweaks.
- Fixed ASCII art issue.

0.8.5

~~~~~~~~~~~~~~~~~~~~~~~~~~
- Fixed packaging issue where external dependencies were missing.
This doesn't impact the Splunk package install, or anyone running Python 3.6 or later.

Page 6 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.