Commit graph

64 commits

Author SHA1 Message Date
Arif Badar
7cf3d94bff Add firewall configuration 2025-08-08 12:18:09 -04:00
Joe VLcek
1ae0d3bddd Replace deprecated MaxRequestsPerChild in the docs.
Fixes: #4176
2025-08-05 12:26:09 -04:00
Mike McLean
0321b7128b Unit tests, fixes, and cleanup 2025-05-07 14:07:03 +02:00
Tomas Kopecek
fd026e7353 Document supported SCMs
Related: https://pagure.io/koji/issue/4265
2024-12-09 13:00:33 +01:00
Jana Cupova
6b2c347a1e Drop unused auth options
Fixes: https://pagure.io/koji/issue/4106
2024-06-07 08:35:52 +02:00
Tomas Kopecek
54f32e8266 docs: mock's configuration
Related: https://pagure.io/koji/issue/4019
2024-03-19 11:09:54 +01:00
Tomas Kopecek
35add0c62b docs: Emphasize new build_from_scm hub policy 2023-04-18 10:10:18 +02:00
Tomas Kopecek
a9912d39e7 doc: fix missing characters
Related: https://pagure.io/koji/issue/3510
2022-09-23 12:12:41 +02:00
Ken Dreyer
4320316326 doc: clarify hub configuration permissions
Name the exact configuration file we want users to restrict with
filesystem permissions.
2022-02-04 14:38:54 -05:00
Jana Cupova
89d14f2093 Add all options to hub_conf.rst
Fixes: https://pagure.io/koji/issue/3073
2021-12-15 14:09:15 +01:00
Jana Cupova
74ac826a87 Add limits on name values
Fixes: https://pagure.io/koji/issue/2117
2021-12-09 07:11:57 +01:00
Yu Ming Zhu
bc272c0532 [doc][defining_hub_policies] update the doc 2021-08-18 09:47:10 +00:00
Ken Dreyer
3bba899053 doc: remove old mod_ssl instructions from server howto
RHEL 7 has httpd 2.4, so anything older than that is not relevant any
more.
2021-07-21 09:48:24 +02:00
Tomas Kopecek
3a49ddf985 drop old ClientCA reference 2021-06-08 16:04:57 +02:00
Ken Dreyer
8e212f170d doc: remove "ca" option from server howto
We removed this option in commit
ffcf1a30eb. Remove it from the Server
HowTo documentation as well.
2021-02-24 13:50:47 +01:00
Ken Dreyer
e4a622c67e doc: note SSL CA requirement for kojid
kojid hosts must have the CA that signed an HTTPS topurl in the
system-wide store.
2021-02-23 17:14:45 -07:00
Ken Dreyer
083a7822d4 doc: reword kojid steps in server howto
Simplify the language for kojid.conf in the Server HowTo document. This
makes it easier for new readers to understand what settings they must
change.
2021-02-23 17:14:45 -07:00
Tomas Kopecek
1e53261394 docs update 2020-10-06 15:00:23 +02:00
Tomas Kopecek
e72a7be0a1 stricter config file permissions
Fixes: https://pagure.io/koji/issue/2124
2020-09-07 09:37:11 +02:00
Tomas Kopecek
5fd89dd0cd doc: access control 2020-08-26 09:19:50 +02:00
Tomas Kopecek
f8419e3626 remove deprecated krbV support
Fixes: https://pagure.io/koji/issue/1991
2020-07-24 15:08:47 -04:00
Tomas Kopecek
8cd79f48e7 builder: py2 fixes
Relates: https://pagure.io/koji/issue/1905
2020-07-22 10:33:33 -04:00
Ken Dreyer
39d55aac9b doc: improve hub selinux instructions
Make the Server HowTo SELinux instructions simpler and easier to read.
Describe each step for users to copy-and-paste.

Use semanage and restorecon instead of chcon in order to make the
changes persist across relabling operations.

Only recommend httpd_can_network_connect_db=1 if the user is using a
TCP/IP connection to PostgreSQL. If koji-hub is using a local Unix
socket connection, Apache does not need this setting.
2020-07-01 11:39:05 +02:00
Tomas Kopecek
19295bf7da kojira: drop kojira.sysconfig
Fixes: https://pagure.io/koji/issue/2171
2020-06-30 14:48:21 +02:00
Ken Dreyer
bc129afe12 doc: update documentation for SSLCACertificateFile
Be more specific about the exact Apache directive to configure the CA
that will validate client certificates (SSLCACertificateFile).
2020-06-24 14:49:34 +02:00
Ken Dreyer
14daa94d82 doc: rewrite PostgreSQL authorization instructions
Rewrite the PostgreSQL authorization instructions in the Server HowTo
guide.

Provide two complete examples: the "all-in-one localhost" option, and
the "separate postgres over the network" option. This reduces the
decision trees and makes it easier to copy and paste the entire
pg_hba.conf file. Explain what each mystery setting does and link to the
PostgreSQL documentation.

Only set listen_addresses to "*" if we need it, and turn it off if we
don't.

Simplify the instructions so that the user only restarts the postgresql
daemon once.

Clarify that koji-web does not need DB access, and the hub is the only
service that requires direct DB access.

Remove the example of authorizing the apache system user, because that
implies that the admin must run a series of complicated GRANT
instructions to allow both koji and apache to write to the DB. Just
grant the koji user full trust access for simplicity.
2020-06-24 14:44:44 +02:00
Ken Dreyer
b47f94a09a doc: update postgresql-setup command for el8 and Fedora
Fedora and RHEL 8 use a newer syntax for postgresql-setup's initdb
command. Provide the older command and the newer command in the Server
Howto documentation.

(We can remove the RHEL 7 version when we drop RHEL 7 support.)
2020-05-13 10:03:59 +02:00
Ken Dreyer
9bdb0687d4 doc: fix koji-sweep-db filename typo
"sweepd" -> "sweep"
2020-04-29 10:15:44 +02:00
Ken Dreyer
aa17d743bc doc: indent SQL query for user ID discovery
Prior to this change, Sphinx rendered the SQL query outside of the
"Note" box.

Indent the query further so that Sphinx renders it inside the "Note"
border.
2020-04-29 10:14:37 +02:00
Tomas Kopecek
9f6e273774 docs: remove obsoleted recommendation to restart kojira
Fixes: https://pagure.io/koji/issue/2170
2020-04-28 09:35:25 +02:00
Ken Dreyer
c932f4cdbc doc: use newer configuration boilerplate for kojira
The Server Howto documentation describes how to configure Kerberos
authentication in kojira.conf.

Prior to this change, the Server Howto documentation's boilerplate
configuration copied the older stale format.
eea730300a added a dedicated section for
Kerberos authentication to kojira.conf. Copy this newer format into the
Server Howto documentation.

This also updates our Server Howto document to use the default
/etc/kojira/kojira.keytab file path, which we added in
f232e49194.
2020-04-22 09:51:28 +02:00
Mike McLean
b5f1737ccb Make the docs more in line with our example configs 2020-04-14 09:12:59 +02:00
Tomas Kopecek
672e367263 update docs on httpd configuration
Fixes: https://pagure.io/koji/issue/1878
2020-04-14 09:12:59 +02:00
Ken Dreyer
b7e8ad06c5 docs: MaxRequestsPerChild -> MaxConnectionsPerChild
As of httpd 2.4, this setting is named "MaxConnectionsPerChild".
2019-11-18 09:37:41 +01:00
Ken Dreyer
8e9698bd69 docs: explain "compile/builder1" user principal
Update the server howto doc to describe the "compile/*" Kerberos user
principal.
2019-11-18 09:34:21 +01:00
Ken Dreyer
9f3f0ce463 docs: recommend 2048 bit keys
The US NIST recommends 2048-bit keys for RSA.
2019-11-18 09:28:46 +01:00
Ken Dreyer
4f2d52c2f6 docs: fix indent for reloading postgres settings
Dedent the description of reloading postgres, so it's clearer that this
must be done after all the modifications to pg_hba.conf.
2019-11-18 09:27:28 +01:00
Ken Dreyer
f53ea2c607 docs: simplify admin bootstrapping intro
Use the active voice when describing how to bootstrap the initial admin
user, and remove some complicated language so this is simpler to read
and understand.
2019-11-18 09:25:18 +01:00
Tomas Kopecek
312c160afc fix indenting 2019-11-18 09:23:02 +01:00
Ken Dreyer
c75f8ef416 docs: fix rST syntax for DB listening section
Clean up some rST syntax issues in the section about altering the
postgres listen_address.
2019-11-15 10:44:06 -07:00
Yu Ming Zhu
353fe2c510 doc: change user creating sql for kerberos auth
a follow-up of PR #1648
2019-10-15 13:07:20 +02:00
Tomas Kopecek
ba54425854 clean build_reservations table 2019-10-15 09:00:22 +02:00
Tomas Kopecek
54d6630345 Add vaccum to sessions cleanup 2019-10-15 09:00:22 +02:00
Tomas Kopecek
2da8d92bae improve docs 2019-10-15 09:00:22 +02:00
Tomas Kopecek
f68eeb6cc0 bundle db maintenance script to hub
Fixes: https://pagure.io/koji/issue/1478
2019-10-15 09:00:22 +02:00
Ken Dreyer
52d706aa85 docs: use systemctl enable --now for kojid
Replace the RHEL 6-era command with the systemd equivalent.

Newer versions of systemd (RHEL 7.3+) support the --now flag to start
and enable the service in one command.
2019-04-05 15:29:27 -04:00
Ken Dreyer
b0d42dfd73 docs: use systemctl enable --now for postgres
Newer versions of systemd (RHEL 7.3+) support the --now flag to start
and enable the service in one command.
2019-04-05 15:29:27 -04:00
Tomas Kopecek
29e9c87b50 kojid.conf documentation
Fixes: https://pagure.io/koji/issue/1241
2019-04-04 17:06:13 -04:00
Pat Riehecky
f8882edd1c Update server doc for newer TLS and event worker 2019-04-04 16:56:29 -04:00
Ken Dreyer
5ae5ba651c docs: koji package provides schema.sql file
Point administrators to the "koji" package for the schema.sql file.
2019-03-12 13:52:48 -04:00