26.44. kych-trust-dbconfig(1)#
26.44.1. Name#
kych-trust-dbconfig - create the PostgreSQL database for kych-trust
26.44.2. Synopsis#
kych-trust-dbconfig [-c CONFIG] [-g ROLE] [-r] [-s] [-u USER] [-h]
26.44.3. Description#
kych-trust-dbconfig is the one-time setup of kych-trust(1)’s database,
run as root: it creates the PostgreSQL role the daemon connects as and the
database that kych-trust.conf(5)’s DATABASE names, owned by that role,
and then loads the schema with kych-trust-dbinit(1). It asks
kych-trust-dbinit where the database is, so a server on a non-default port
works, and it refuses to act on a database on another host.
The administrative work is done as the postgres user over the local
socket. The daemon connects with peer authentication as the system user it
runs as, so the role has that user’s name.
26.44.4. Options#
- -c CONFIG
Use CONFIG instead of
/etc/kych-trust/kych-trust.conf.- -g ROLE
Let the existing PostgreSQL role ROLE read the snapshots:
CONNECTon the database,USAGEon schemakych_trustandSELECTon its tables, those of later schema patches included. This is what a program that takes kych-trust’s decisions in-process needs, e.g. kych-oid4vp(1) withKYCH_TRUST_DATABASE(kych-oid4vp.conf(5)):-g kych-oid4vp, after kych-oid4vp-dbconfig(1) created that role. May be given more than once; the role gets no other privilege.- -r
Reset: drop an existing database first. This destroys every stored snapshot, and with them the record of which list a past decision was taken on.
- -s
Skip the schema initialisation, creating only the role and the database.
- -u USER
The system user the daemon runs as, and so the role to create. Defaults to
kych-trust.- -h
Print short help.
26.44.5. Examples#
$ sudo kych-trust-dbconfig
$ sudo kych-trust-dbconfig -g kych-oid4vp
26.44.6. See Also#
kych-trust-dbinit(1), kych-trust(1), kych-trust.conf(5).
26.44.7. Bugs#
Report bugs by using https://bugs.taler.net/ or by sending electronic mail to <taler@gnu.org>.