Skip to content

Fix schema for V0 HttpConfig headers #505

Description

@yuri-tceretian

Currently, the field Headers is a map[string]Header where value is the following type

type Header struct {
Values []string `yaml:"values,omitempty" json:"values,omitempty"`
Secrets []commoncfg.Secret `yaml:"secrets,omitempty" json:"secrets,omitempty"`
Files []string `yaml:"files,omitempty" json:"files,omitempty"`
}

The schema definition is not correct as it represents the value as just map[string]string.

This introduces two problems:

  1. Secrets in headers are not properly discovered\masked
  2. Headers are not properly displayed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions