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