slackhq / nebula

A scalable overlay networking tool with a focus on performance, simplicity and security
MIT License
14.01k stars 939 forks source link

upgrade to yaml.v3 #1148

Open wadey opened 1 month ago

wadey commented 1 month ago

The main nice fix here is that maps unmarshal into map[string]any instead of map[any]any, so it cleans things up a bit.

The only gotcha I see for our uses is that the Yaml 1.1 bool types like yes won't automatically be set as a bool inside of map[string]any. So I added a little helper config.AsBool to keep backwards compat there.