24 Commits
Author SHA1 Message Date
William Douglas 7b752b5ff3 Update cert generation process
With the latest urllib3 the CN match is no longer used for hostname
verification and instead the use of subjectAltName is required. With
openssl 3.3.1 this is needed to be handled with both an additional
parameter when generating the cert/request and also some new
configuration for the ssl.cnf. It is also necessary to have extensions
copied so the SAN information is preserved down the cert chain.

Signed-off-by: William Douglas <william.douglas@intel.com>
2024-07-11 05:41:37 -07:00
William Douglas ba5f172421 Update koji schema.sql path 2024-06-20 15:43:52 -07:00
William Douglas 4d70e3030c Sync koji apache configs with upstream
Resolves issues related to https://cryptography.io/en/latest/faq/#starting-cryptography-using-mod-wsgi-produces-an-internalerror-during-a-call-in-register-osrandom-engine

Signed-off-by: William Douglas <william.douglas@intel.com>
2023-10-25 15:01:41 -07:00
William Douglas 7ec609a6d0 Update deploy-koji.sh for koji 1.33
Koji's koji-hub entrypoint has changed so update the deployjment
script to reflect the new entrypoint.

Signed-off-by: William Douglas <william.douglas@intel.com>
2023-06-12 11:26:24 -07:00
Patrick McCarty 931e77e67a Remove unused with_src kojira option
In koji 1.21.0, kojira began logging a deprecation warning for this
option, but it appears to have never had a functional use in the
codebase. Avoid the deprecation warning by removing the option from the
default config.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2021-09-10 09:08:11 -07:00
Patrick McCarty 87dc8384f9 Remove 'ca' option from configs
This option was officially deprecated in koji 1.22.0 and removed in koji
1.24.0. It was internally deprecated a while before 1.22.0, and I've
confirmed that removing the config for koji 1.21.2 -- the current
version in Clear -- is a no-op.

(Note that removing the 'ca' option from the client config is optional,
since unknown options in that config appear to be ignored. But for
completeness, I removed it there as well.)

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2021-09-09 11:26:59 -07:00
George T Kramer 999632937b Supply more sane SSL certificate defaults
Want to enable spinning up a development environment quickly.

Increasing the countryName_max SSL configuration did not allow a country
name of 'Example Country Code' to be used when generating a certificate.

Prefer to revert back to the original value for countryName_max and
supply shorter parameters for certificate generation.

Change challengePassword_max to be consistent with the other limits.

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2019-11-20 16:02:59 -08:00
George T Kramer a7bf81c0b7 Increase SSL config bounds for certificate generation
Supply more reasonable maximum boundaries for country code and challenge
password length.  This allows users to get going without modifying any
values from parameter.sh for SSL certificate generation.

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2019-11-12 09:23:28 -08:00
Pitterle, Matthew D 796cf8b064 Systemd override for kojira service
Kojira service will often fail to start upon
boot because postgresql is not running yet
2019-11-08 14:31:40 -08:00
George T Kramer 843439f0eb Conditionally run swupd during setup
swupd should only be run during setup when on an officially released
version of Clear that has an upadate stream.  Development versions are
usually indicated when the VERSION_ID is equal to 1 and do not have an
update stream.  In these cases, the assumption is that all required
software is already installed prior to setup.

However, add checks for only the most critical dependencies before
continuing with the setup so that it more obvious to the user that these
are missing when they are.

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2019-10-03 14:43:43 -07:00
George T Kramer d848c0d8b3 Host koji with python3
mod_wsgi is built and loaded with python3 by default.  No longer provide
a configuration to load the python2 equivalent, since it is also no
longer included in the koji bundle.

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2019-10-02 11:27:12 -07:00
George T Kramer c877b0e3e5 Use stronger cryptographic primitives when generating koji CA certs
Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2019-07-29 15:37:14 -07:00
George T Kramer ea7f3d0802 Use stronger cryptographic primitives when generating koji certs
Comply with current NSA recommendations

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2019-07-29 15:32:22 -07:00
George T Kramer d33200af07 Update copyright for 2019 2019-03-04 17:00:20 -08:00
George T Kramer 66d8fff4b4 Isolate user-facing parameters 2019-03-04 17:00:20 -08:00
George T Kramer 9fcbf230a4 Deploy all DevOps services for development
A deployment of a "koji" server consists of additional services that
support development beyond koji itself.  These include
git/cgit/gitolite, a mash containing the current snapshot of the
packages in koji, and an upstreams package sources cache.

Because these are required for integration with a DevOps workflow, they
are not included by default in the ansible playbook.
2019-03-04 17:00:20 -08:00
George T Kramer 17ac27a687 Quote all subshell usage
Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2018-11-14 12:19:51 -08:00
George T Kramer 3da7b00bbd Ensure RANDFILE exists prior to usage
OpenSSL complains if the RANDFILE does not exist when it is generating
certificates.  Create an initial seed for this file from urandom.

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2018-11-14 12:17:08 -08:00
George T Kramer bdee352232 Add proxy variables if defined by environment
kojid will not be able to merge repos and mock will not be able to build
a chroot in an environment where proxy variables are used unless they
are defined in configuration files.

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2018-11-13 11:44:42 -08:00
George T Kramer d3a608059b Parameterize kojid capacity
Because the kojid capacity is difficult and error-prone to calculate
automatically, let the user define this.  Default the kojid capacity to
what is listed in the pagure documentation.

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2018-11-07 17:47:12 -08:00
George T Kramer c20e9e6a58 Handle edge case when computing kojid capacity
The kojid capacity can never be zero, must always be at least one.

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2018-11-07 17:35:24 -08:00
George T Kramer 1a1a715c3f Add installation of koji to script 2018-11-06 11:15:58 -08:00
George T Kramer 809bf1ea20 Automatically determine capacity for kojid
The capacity for kojid should scale according to the number of
processing units available because building packages is largely a
CPU-bound task.  Defaulting to a safe capacity of one-fourth the number
of processing units.

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
2018-11-02 17:14:59 -07:00
William Douglas a1ac13f792 Initial koji setup and configuration with ansible on Clear 2018-10-22 13:46:38 -07:00