old_mixer_repo
old_mixer_repo copied to clipboard
Validate attributes at first opportunity
Mixer does not validate attributes sent by Proxy or attributes generated by an adapter with the attribute vocabulary.
This means that
- Validation code is strewn all over the code base.
- We assume validity and incur a
panicif an incorrect type is sent.
This was seen in https://github.com/istio/mixer/pull/1342
I think we need to augment the attr package with knowledge of attribute manifests so that it can provide a typed experience around attributes.