Skip to content

The strategies.yaml parser can incorrectly interpret the YAML elements in the host protocol. #7824

@jrushford

Description

@jrushford

A user inadvertently created an invalid host definition in the strategies.yaml. When configuring the scheme section of a host the user added the port element as an array field. The parser allowed this but at runtime, the next hop lookup failed to get the proper port number which caused a runtime assertion failure.

Incorrect YAML:

    protocol:
        - scheme: http
        - port:  80

Correct YAML:

    protocol:
        - scheme: http
          port: 80

This is also correct but maybe more clear:

   protocol:
      -
        scheme: http
        port:  80
      -
        scheme: https
        port:  443

The YAML parser should catch and report the error.

Metadata

Metadata

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