Debian Codegraph @

man/klutshnik.cfg.md

raw symbols SCIP
1 # NAME
2
3 klutshnik.cfg - configuration for for klutshnik client `klutshnik`
4
5 # DESCRIPTION
6
7 This man page describes the format and various ways of configuring the
8 `klutshnik` CLI client.
9
10 The client looks for the configuration in the following files and order:
11
12 - /etc/klutshnik/config
13 - ~/.config/klutshnik/config
14 - ~/.klutshnikrc
15 - ./klutshnik.cfg
16
17 The configuration file format is TOML, see https://toml.io/ .
18
19 ## `[Client]` SECTION
20
21 This section configures the general options of the client.
22
23 ### `ID_SALT`
24
25 This value is used as an input to generating keyids for your records.
26 You must set/change this value, it ensures that your record ids are
27 unique. You must also make sure to not lose this value, if you do, you
28 lose access to your records. Has no default, must be set.
29
30 ### THRESHOLD
31
32 This value sets the threshold for your server configuration. This
33 value is tightly dependent on the number of servers you have
34 configured in the `[servers]` section.
35
36 In order to be able to rotate your DEK keys you need to have at least
37 `(t-1)*2 + 1` servers configured in your `[servers]` section. That
38 means for the smallest threshold setup, this value is 2 and you need
39 three servers configured in the `[servers]` section. The upper limit
40 of this value 63, but it is highly optimistic to run such large setups
41 reliably.
42
43 ### `TS_EPSILON`
44
45 The time in seconds a distributed keygen (DKG) protocol message is
46 considered fresh. anything older than this is considered invalid and
47 aborts a DKG. Higher values help with laggy links, lower values can
48 be fine if you have high-speed connections to all servers. Default: 1200s
49
50 ### CLIENTKEY_PATH
51
52 This variable is a path pointing at a file containing a secret
53 master key of the client. If this value is not set, it is
54 expected on standard input for all operations that require this key.
55
56 Leaving this value commented out allows to pipe in the private key
57 from password managers, or other more secure storage than the
58 filesystem.
59
60 If this path is set, but the file does not exist `klutshnik init` will
61 initialize this file.
62
63 ### LTSIGPUB
64
65 This variable must be set to the public long-term signing key of the
66 client, this public key must be base64 encoded and this encoded value
67 prefixed by the string "KLTPK-". The operation `klutshnik init`
68 initialized this value.
69
70 ### DEBUG
71
72 This is a boolean variable which enables a lot of low-level debug
73 information.
74
75 ### VERBOSE
76
77 This is a boolean variable which makes the client more verbose.
78
79 ### KEYSTORE
80
81 This variable holds a path where the public key, their shares and
82 threshold setup information for each of your keys is stored.
83
84 ### `[servers]` SECTION
85
86 This section contains the list of servers for the client. The number
87 of items in this list needs one more entry than the value of
88 `threshold`, but in order to benefit from key updates, the number of
89 servers must be `(t-1)*2 +1`, where `t` is the `threshold` value
90 configured in the `[client]` section.
91
92 Servers are in their own sections, with the following pattern:
93 `[servers.<name>]` Where name should be unique among all servers,
94 simple labels like kms1, kms2, etc. are totally fine.
95
96 #### ADDRESS
97
98 This can be either an IPv4 or IPv6 address to listen on.
99
100 #### PORT
101
102 The port the server listens on.
103
104 #### `SSL_CERT`
105
106 This variable is a path pointing at a file containing a TLS
107 certificate. This is only needed for TLS certificates that are
108 self-signed or otherwise not in signed by CAs in your CA store.
109
110 #### LTSIGKEY
111
112 This variable is a path pointing at a file containing a public
113 long-term signing key of the server. You need to get this from the
114 operators of the klutshnik server.
115
116 #### NOISEKEY
117
118 This variable is a path pointing at a file containing a public
119 long-term Noise key of the server. You need to get this from the
120 operators of the klutshnik server.
121
122 # FILES
123
124 - /etc/klutshnik/config
125 - ~/.config/klutshnik/config
126 - ~/.klutshnikrc
127 - ./klutshnik.cfg
128
129 # SECURITY CONSIDERATIONS
130
131 You **SHOULD** back up your configuration file, most importantly the
132 value of `id_salt` and your ltsigkey.
133
134 # REPORTING BUGS
135
136 https://github.com/stef/klutshnik/issues/
137
138 # AUTHOR
139
140 Written by Stefan Marsiske.
141
142 # COPYRIGHT
143
144 Copyright © 2025 Stefan Marsiske. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
145 This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
146
147 # SEE ALSO
148
149 `https://klutshnik.info`
150
151 `klutshnik(1)`