Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 2.31 KB

config_file_auth.markdown

File metadata and controls

61 lines (40 loc) · 2.31 KB
layout title canonical
default
Config Files: auth.conf
/puppet/latest/reference/config_file_auth.html

Access to Puppet's HTTPS API is configured in auth.conf.

About Puppet's HTTPS API

When running in the standard agent/master arrangement, puppet agent nodes receive all of their configurations by contacting the puppet master over HTTPS. In general, a single configuration run includes:

  • Fetching a node object (to read the node's environment)
  • Fetching plugins
  • Requesting a catalog (and submitting the node's facts as POST data in the request)
  • Fetching file metadata and contents while applying the catalog
  • Submitting a report after applying the catalog

All of these are provided as HTTPS services (sometimes called "endpoints") by the puppet master server. Additionally, the puppet master provides other services, some of which are used less frequently by agent nodes (such as the CA services) and some of which shouldn't be used by agent nodes at all (such as the certificate_status service, which can sign and revoke certificates).

Since not all agent nodes should have access to all services, and since certain services should have restricted access (for example, nodes should not be able to request some other node's configuration catalog), the puppet master keeps a list of access rules for all of its HTTPS services. These rules can be edited in auth.conf.

Location

The auth.conf file is located at $confdir/auth.conf by default. Its location is configurable with the rest_authconfig setting.

The location of the confdir varies; it depends on the OS, Puppet distribution, and user account. See the confdir documentation for details.

Example

# Example auth.conf:

path /
auth true
environment override
allow magpie.example.com

path /certificate_status
auth true
environment production
allow magpie.example.com

path /facts
method save
auth true
allow magpie.example.com

path /facts
auth true
method find, search
allow magpie.example.com, dashboard.example.com, finch.example.com

Format

See the HTTPS access control documentation for full details about the auth.conf file.