The problem: osbuild-composer used to have a rather uncomplete logic for selecting client certificates and keys while fetching data from repositories that use the "subscription model". In this scenario, every repo requires the user to use a client-side TLS certificate. The problem is that every repo can use its own CA and require a different pair of a certificate and a key. This case wasn't handled at all in composer. Furthermore, osbuild-composer can use remote workers which complicates things even more. Assumptions: The problem outlined above is hard to solve in the general case, but Red Hat Subscription Manager places certain limitations on how subscriptions might be used. For example, a subscription must be tight to a host system, so there is no way to use such a repository in osbuild-composer without it being available on the host system as well. Also, if a user wishes to use a certain repository in osbuild-composer it must be available on both hosts: the composer and the worker. It will come with different pair of a client certificate and a key but otherwise, its configuration remains the same. The solution: Expect all the subscriptions to be registered in the /etc/yum.repos.d/redhat.repo file. Read the mapping of URLs to certificates and keys from there and use it. Don't change the manifest format and let osbuild guess the appropriate subscription to use.
42 lines
1.6 KiB
Modula-2
42 lines
1.6 KiB
Modula-2
module github.com/osbuild/osbuild-composer
|
|
|
|
go 1.15
|
|
|
|
require (
|
|
cloud.google.com/go v0.75.0
|
|
cloud.google.com/go/storage v1.10.0
|
|
github.com/Azure/azure-pipeline-go v0.2.3
|
|
github.com/Azure/azure-sdk-for-go v41.3.0+incompatible
|
|
github.com/Azure/azure-storage-blob-go v0.13.0
|
|
github.com/Azure/go-autorest/autorest v0.10.0
|
|
github.com/Azure/go-autorest/autorest/azure/auth v0.4.2
|
|
github.com/Azure/go-autorest/autorest/to v0.3.0 // indirect
|
|
github.com/Azure/go-autorest/autorest/validation v0.2.0 // indirect
|
|
github.com/BurntSushi/toml v0.3.1
|
|
github.com/aws/aws-sdk-go v1.27.0
|
|
github.com/coreos/go-semver v0.3.0
|
|
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f
|
|
github.com/deepmap/oapi-codegen v1.3.12
|
|
github.com/getkin/kin-openapi v0.13.0
|
|
github.com/gobwas/glob v0.2.3
|
|
github.com/golang/protobuf v1.4.3
|
|
github.com/google/go-cmp v0.5.4
|
|
github.com/google/uuid v1.1.2
|
|
github.com/gophercloud/gophercloud v0.11.0
|
|
github.com/jackc/pgtype v1.7.0
|
|
github.com/jackc/pgx/v4 v4.11.0
|
|
github.com/julienschmidt/httprouter v1.3.0
|
|
github.com/kolo/xmlrpc v0.0.0-20200310150728-e0350524596b
|
|
github.com/labstack/echo/v4 v4.1.11
|
|
github.com/prometheus/client_golang v1.10.0
|
|
github.com/stretchr/testify v1.5.1
|
|
github.com/ubccr/kerby v0.0.0-20170626144437-201a958fc453
|
|
github.com/vmware/govmomi v0.23.0
|
|
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect
|
|
golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5
|
|
golang.org/x/sys v0.0.0-20210423082822-04245dca01da
|
|
google.golang.org/api v0.36.0
|
|
google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7
|
|
google.golang.org/protobuf v1.25.0
|
|
gopkg.in/ini.v1 v1.62.0
|
|
)
|