Class: Autosign::Validator::Multiplexer

Inherits:
ValidatorBase show all
Defined in:
lib/autosign/validator/multiplexer.rb

Overview

The multiplexer validator sends the same request received by the autosign executable to one or more external executables. The purpose is to allow one or more existing autosign scripts to be used in conjunction with the native validators implemented in this tool.

Examples:

validate autosign requests with any one of three external autosign scripts

# In the /etc/autosign.conf file, include a section reading:
[multiplexer]
  strategy = any
  external_policy_executable = /usr/local/bin/custom-autosigner1.sh
  external_policy_executable = /usr/local/bin/another-autosign-script.rb
  external_policy_executable = /usr/local/bin/yet-another-autosign-script.pl
# all three scripts will be called with the same interface puppet
# uses when an autosign policy executable is specified in the `autosign`
# setting in the [master] section of the puppet.conf config file.

validate autosign requests with both of two external autosign scripts

# In the /etc/autosign.conf file, include a section reading:
[multiplexer]
  strategy = all
  external_policy_executable = /usr/local/bin/custom-autosigner1.sh
  external_policy_executable = /usr/local/bin/another-autosign-script.rb
# requests will only be validated by the multiplexer validator if they
# are validated by both external policy executables.

Constant Summary collapse

NAME =
'multiplexer'

Instance Attribute Summary

Attributes inherited from ValidatorBase

#config_file_settings

Method Summary

Methods inherited from ValidatorBase

#initialize, #name, #validate

Constructor Details

This class inherits a constructor from Autosign::Validator::ValidatorBase