Skip to content

errors logged "failed to create baggage member" for values including unicode chars #1582

@frostmar

Description

@frostmar

We're seeing errors logged when gobin/Detector.Scan attempts to add baggage with unicode values.
When running claircore v1.5.37

Examples:

state:ScanLayers
scanner:gobin
component:gobin/Detector.Scan

error:invalid value: "\\u00c4main.go"
message:failed to create baggage member
value:\u00c4main.go
key:filename
error:invalid value: "NetLock_Arany_=Class_Gold=_F\\u0151tan\\u00fas\\u00edtv\\u00e1ny.pem"
message:failed to create baggage member
value:NetLock_Arany_=Class_Gold=_F\u0151tan\u00fas\u00edtv\u00e1ny.pem
key:filename
error:invalid value: "ca-cert-T\\u00dcRKTRUST_...redacted...\\u011flay\\u0131c\\u0131s\\u0131_H5.pem"         (👈 user filename partly redacted for bug report)
message:failed to create baggage member
value:ca-cert-T\u00dcRKTRUST_...redacted...\u011flay\u0131c\u0131s\u0131_H5.pem
key:filename

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions