1. 19 Apr, 2022 1 commit
  2. 11 Apr, 2022 1 commit
  3. 22 Mar, 2022 3 commits
  4. 04 Mar, 2022 2 commits
  5. 11 Feb, 2022 1 commit
  6. 21 Dec, 2021 1 commit
    • Stephen Finucane's avatar
      Remove six · 7f7b9d92
      Stephen Finucane authored
      
      
      This wasn't actually recorded in our list of dependencies, but we were
      using it all the same. In any case, it's no longer necessary so remove
      it.
      
      Change-Id: Ia29fdf5058c2b22327cb0ba16c28bef3660e9ceb
      Signed-off-by: default avatarStephen Finucane <stephenfin@redhat.com>
      7f7b9d92
  7. 01 Dec, 2021 1 commit
    • Mohammed Naser's avatar
      Bump max_buffer_size for Deserializer · c223dbce
      Mohammed Naser authored
      Since msgpack 0.6.0, some limits were introduced for the
      deserializer which were put in to avoid any denial of service
      attacks using msgpack.  These limits were raised to 100MiB
      in the release of msgpack 1.0.0.
      
      The default buffer sizes that were implemented were quite low
      and when running certain `privsep` commands, especially for
      Neutron when using linux bridge, where there is a large amount
      of netdevs, privsep would crash since msgpack would fail to
      decode the message since it considers it too big:
      
        ValueError: 1174941 exceeds max_str_len(1048576)
      
      In this commit, the `max_buffer_size` is bumped to the value
      that ships with msgpack==1.0.0 to allow for users who don't
      have that to continue to function. Also, since `msgpack` is
      only being used by the internal API, we're not worried about
      a third party coming in and overwhelming the system by
      deserializing calls.
      
      This fix also addresses some weird behaviour where privsep
      will die and certain OpenStack agents would start to behave
      in a strange way once they hit a certain number of ports (since
      any privsep calls would start to fail).
      
      Closes-Bug: #1844822
      Closes-Bug: #1896734
      Related-Bug: #1928764
      Closes-Bug: #1952611
      Change-Id: I135917522daff95377d07566317ef0fc0d16e7cb
      c223dbce
  8. 10 Sep, 2021 2 commits
  9. 20 Aug, 2021 1 commit
  10. 10 Aug, 2021 1 commit
  11. 02 Aug, 2021 1 commit
    • Corey Bryant's avatar
      Add except path with exception debug to send_recv · 4f145067
      Corey Bryant authored
      The related bug resulted when an exception occurred within the
      future.result() call. This caused the finally block to be executed,
      and therefore myid to be deleted from self.outstanding_msgs prior
      to _reader_main() checking if the msgid not in self.outstanding_msgs.
      This caused _reader_main() to raise an AssertionError because the
      msgid was no longer in outstanding_msgs. This is a small step forward
      to log a warning when this siutation occurs.
      
      Related-Bug: #1927868
      Change-Id: I2eed242e0c796b8a2aa3d1b21bd1da4c497f624d
      4f145067
  12. 23 Jun, 2021 1 commit
    • elajkat's avatar
      Add timeout to PrivContext and entrypoint_with_timeout decorator · f7f3349d
      elajkat authored
      
      
      entrypoint_with_timeout decorator can be used with a timeout parameter,
      if the timeout is reached PrivsepTimeout is raised.
      The PrivContext has timeout variable, which will be used for all
      functions decorated with entrypoint, and PrivsepTimeout is raised if
      timeout is reached.
      
      Co-authored-by: default avatarRodolfo Alonso <ralonsoh@redhat.com>
      Change-Id: Ie3b1fc255c0c05fd5403b90ef49b954fe397fb77
      Related-Bug: #1930401
      f7f3349d
  13. 22 Jun, 2021 1 commit
  14. 07 Jun, 2021 1 commit
  15. 18 May, 2021 1 commit
  16. 14 May, 2021 1 commit
    • yangyawei's avatar
      setup.cfg: Replace dashes with underscores · bd989a3c
      yangyawei authored
      Setuptools v54.1.0 introduces a warning that the use of dash-separated
      options in 'setup.cfg' will not be supported in a future version [1].
      Get ahead of the issue by replacing the dashes with underscores. Without
      this, we see 'UserWarning' messages like the following on new enough
      versions of setuptools:
      
        UserWarning: Usage of dash-separated 'description-file' will not be
        supported in future versions. Please use the underscore name
        'description_file' instead
      
      [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
      
      Change-Id: Ia53113f891bcb081c63778e3c943896bc743c34b
      bd989a3c
  17. 10 May, 2021 1 commit
    • Gorka Eguileor's avatar
      Allow finer grained log levels · 71c732c8
      Gorka Eguileor authored
      Currently all privsep calls use the same logging level as they use the
      ``oslo_privsep.daemon`` logger.
      
      This creates a problem for services like nova where we don't want to
      log its own privsep debug messages by default (even in debug mode) but
      we want them for os-brick privsep calls.
      
      This patch introduces a new string parameter to ``PrivContext`` called
      ``logger_name`` to control the name of the logger to use, which defaults
      to ``oslo_privsep.daemon``.
      
      Related-Bug: #1922052
      Change-Id: Ie7cc25ed53563dd500f7b10ff43a48518d46a2e0
      71c732c8
  18. 16 Apr, 2021 2 commits
  19. 15 Apr, 2021 2 commits
  20. 07 Apr, 2021 1 commit
  21. 04 Nov, 2020 2 commits
  22. 22 Sep, 2020 1 commit
  23. 11 Sep, 2020 2 commits
  24. 08 Sep, 2020 1 commit
    • Hervé Beraud's avatar
      Adding pre-commit · d7f6ddc5
      Hervé Beraud authored
      Introduced changes:
      - pre-commit config and rules.
      - Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
      - Applying fixes for pre-commit compliance in all code.
      
      Also commit hash will be used instead of version tags in pre-commit to
      prevend arbitrary code from running in developer's machines.
      
      pre-commit will be used to:
      - trailing whitespace;
      - Replaces or checks mixed line ending (mixed-line-ending);
      - Forbid files which have a UTF-8 byte-order marker
        (check-byte-order-marker);
      - Checks that non-binary executables have a proper
        shebang (check-executables-have-shebangs);
      - Check for files that contain merge conflict strings
        (check-merge-conflict);
      - Check for debugger imports and py37+ breakpoint()
        calls in python source (debug-statements);
      - Attempts to load all yaml files to verify syntax (check-yaml);
      - Run flake8 checks (flake8) (local)
      
      For further details about tests please refer to:
      https://github.com/pre-commit/pre-commit-hooks
      
      
      
      Change-Id: Ic88cf026a74e9da4acaf9e00c50fddd2c8a48fbe
      Signed-off-by: default avatarMoisés Guimarães de Medeiros <moguimar@redhat.com>
      d7f6ddc5
  25. 06 Aug, 2020 1 commit
  26. 04 Aug, 2020 1 commit
  27. 24 Jul, 2020 1 commit
  28. 15 Jul, 2020 1 commit
  29. 30 Jun, 2020 1 commit
  30. 11 Jun, 2020 1 commit
  31. 04 Jun, 2020 1 commit
  32. 26 May, 2020 1 commit