logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

authkeys - Authentication file for the Heartbeat cluster messaging layer

Authors

AlanRobertson <alanr@unix.sh> heartbeat, original Wiki page LarsEllenberg <lars.ellenberg@linbit.com> Heartbeat Maintainer; code fixes; documentation updates FlorianHaas <florian.haas@linbit.com> man page Heartbeat 3.0.6 24 Nov 2009 AUTHKEYS(5)

Description

/etc/ha.d/authkeys is read by heartbeat(8). It enables Heartbeat to securely authenticate cluster nodes. This file must not be readable or writable by any users other than root.

File Format

Two lines are required in the authkeys file: 1. A line which says which key to use in signing outgoing packets 2. One or more lines defining how incoming packets might be being signed. The file must follow the following format: authnumnummethodsecretnummethodsecretnummethodsecret ... num is a numerical identifier, between 1 and 15 inclusive. It must be unique within the file. method is one of the available authentication signature methods (see below for supported methods). secret is an alphanumerical shared secret used to identify cluster nodes to each other. authnum selects the currently active authentication method and secret.

Name

authkeys - Authentication file for the Heartbeat cluster messaging layer

Supported Signature Methods

The following signature methods are supported in authkeys (listed here in alphabetical order): md5 MD5 hash method. This method requires a shared secret. sha1 SHA-1 hash method. This method requires a shared secret. crc Cyclic Redundancy Check hash method. This method does not require a shared secret and is insecure; it's use is strongly discouraged. An absolutely up-to-date list of authentication methods supported may be retrieved by running ls/usr/lib/heartbeat/plugins/HBauth/*.so.

See Also