2 .\" Copyright (c) 2024 Omar Polo <op@openbsd.org>
4 .\" Permission to use, copy, modify, and distribute this software for any
5 .\" purpose with or without fee is hereby granted, provided that the above
6 .\" copyright notice and this permission notice appear in all copies.
8 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dt GOTD-SECRETS.CONF 5
24 contains authentication credentials for use with
27 This file must be owned by the root user and must not be readable
30 The file format is line-based, with one entry per line.
31 Comments can appear at the start of a line using a hash mark
33 and extend to the end of the line.
34 Empty lines are ignored.
36 Each entry consists of whitespace-separated tokens and defines a set
38 Any credential parameters containing whitespace should be surrounded
39 by single or double quotes.
41 Each set of credentials must be given a
43 which can be used to refer to credentials in
47 must be unique among all credentials of the same type.
49 The supported credential types and their parameters are:
51 .It Ic auth Ar label Ic user Ar user Ic password Ar password
54 type represents HTTP Basic Authentication credentials consisting of a
58 .It Ic hmac Ar label Ar secret
61 type represents shared secrets for use with HMAC signatures of HTTP
69 .Dl $ openssl rand -base64 32
73 .Bl -tag -width Ds -compact
74 .It Pa /etc/gotd-secrets.conf
80 Define credentials for HTTP basic authentication and HMAC signatures:
81 .Bd -literal -offset indent
82 # /etc/gotd-secrets.conf
83 auth mochi user "flan" password "super-strong-password!"
84 hmac hacker q0tcl8QhjYs7U75MW/2rwB30CpdbAhONkfLGxFHm/+8=
87 These credentials can be referenced in
90 .Bd -literal -offset indent
92 repository "openbsd/src" {
93 path "/var/git/src.git"
97 url https://example.com/ci/ auth mochi hmac hacker