Skip to content

Rework Koji/CloudAPI configuration in composer #1900

Open
@thozza

Description

@thozza

Describe the bug
Currently, the Koji and CloudAPI configurations are mixed in a single KojiAPIConfig structure, mainly because both APIs share the same listener.

type KojiAPIConfig struct {
AllowedDomains []string `toml:"allowed_domains"`
CA string `toml:"ca"`
EnableTLS bool `toml:"enable_tls"`
EnableMTLS bool `toml:"enable_mtls"`
EnableJWT bool `toml:"enable_jwt"`
JWTKeysURL string `toml:"jwt_keys_url"`
JWTKeysCA string `toml:"jwt_ca_file"`
JWTACLFile string `toml:"jwt_acl_file"`
}

This is getting a bit confusing, because with PR #1841, the Koji API configuration will contain AWS Bucket value, which is not at all relevant for the Koji API.

Expected behavior
We should consider our options and rework the configuration in some way, e.g:

  1. Split Koji and Cloud API configurations, probably also the listeners that they use.
  2. Rename the Koji API configuration to something common, such as "Composer API".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Cloud APIIssues related to Cloud APIKoji integrationWork items related to Koji integration or deploymentStalerefactoringRefactoring of code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions