Skip to content

Improve clusterd security #436

Merged
merged 7 commits into from
Jan 28, 2025
Merged

Improve clusterd security #436

merged 7 commits into from
Jan 28, 2025

Commits on Jan 27, 2025

  1. clusterd: Remove tabs

    donald committed Jan 27, 2025
    Configuration menu
    Copy the full SHA
    75d1f1c View commit details
    Browse the repository at this point in the history
  2. clusters: Move brackets

    donald committed Jan 27, 2025
    Configuration menu
    Copy the full SHA
    856d682 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4f8f674 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c8ae9d7 View commit details
    Browse the repository at this point in the history
  5. clusterd: Implement standard command service

    Implement new udp service 'exec.2' which accepts a list of predefined
    commands to run.
    
    Implement new command `clusterd exec CMD...`
    
    The new usage is supposed to make `clusterd --exec` and the 'exec' UDP
    service obsolete. Having all commands which might be issued after file
    updates available in the same %CMD infrastructure will make the
    following changes easier and the file shorter, once the obsolete command
    `clusterd --exec` and the UDP services udp_rx_flush_gidcache,
    udp_rx_make_automaps, udp_rx_reexport and udp_rx_exec are removed.
    donald committed Jan 27, 2025
    Configuration menu
    Copy the full SHA
    4c74e49 View commit details
    Browse the repository at this point in the history
  6. clusterd: Add --post option for push

    Change protocol for `clusterd push`:
    
    - Multiple files can be offered with one command invocation and one
      UDP broadcast
    - The files are actually transferred by calling back with tcp to the
      station which offered the files. This allows the receiving node to
      restrict file distribution sources to specific nodes.
    - The list of "trusted nodes" is set to `afk` and `wtf`.
    - A list of predefined commands can be given in addition to the list of
      offered files. The commands are executed after the files are
      transferred. This is required, because from the point of view of the
      caller of `cluster push`, the process is asynchronous, and so these
      commands can not be given with additional `clusterd exec` or
      `clusterd --exec` commands.
    
    Expected usage is something like this:
    
        clusterd push /etc/mxpolicy --post mkmotd
    
    After the daemons have updated, callers should be switches to the new
    commands and then the old commands should be removed.
    donald committed Jan 27, 2025
    Configuration menu
    Copy the full SHA
    9da937f View commit details
    Browse the repository at this point in the history
  7. clusterd: Fix restart

    Currently restart isn't working, because we removed 'kill'
    from the options and udp_rx_restart is using it.
    
    Just exit instead, the service manage should restart the service.
    donald committed Jan 27, 2025
    Configuration menu
    Copy the full SHA
    adc5996 View commit details
    Browse the repository at this point in the history