You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interestingly, only the CLI call does a consumer type matching correctly in consumerProviderRegistry. The credentials do not even get loaded correctly into the Credential Source, so I am assuming a problem in config parsing.
What you expected to happen:
Config File Direct Credentials get passed correctly.
How to reproduce it (as minimally and precisely as possible):
Write a config file as described above. Make sure that the credentials get used.
Anything else we need to know:
Uploader specification code on the PPI:
func (a *Uploader) ValidateSpecification(p ppi.Plugin, spec ppi.UploadTargetSpec) (*ppi.UploadTargetSpecInfo, error) {
var info ppi.UploadTargetSpecInfo
my, ok := spec.(*HelmTargetSpec)
if !ok {
return nil, fmt.Errorf("invalid spec type %T", spec)
}
purl, err := ParseURL(my.URL)
if err != nil {
return nil, fmt.Errorf("failed to parse URL: %w", err)
}
info.ConsumerId = credentials.ConsumerIdentity{
cpi.ID_TYPE: NAME,
ID_HOSTNAME: purl.Hostname(),
ID_REPOSITORY: my.Repository,
}
if purl.Port() != "" {
info.ConsumerId.SetNonEmptyValue(ID_PORT, purl.Port())
}
return &info, nil
}
Environment:
The text was updated successfully, but these errors were encountered:
What happened:
Assuming a plugin implementing the uploader ppi, we expect that we can pass credentials to it like so:
This is the equivalent of the CLI Call
Interestingly, only the CLI call does a consumer type matching correctly in
consumerProviderRegistry
. The credentials do not even get loaded correctly into the Credential Source, so I am assuming a problem in config parsing.What you expected to happen:
Config File Direct Credentials get passed correctly.
How to reproduce it (as minimally and precisely as possible):
Write a config file as described above. Make sure that the credentials get used.
Anything else we need to know:
Uploader specification code on the PPI:
Environment:
The text was updated successfully, but these errors were encountered: