[YANGTOOLS-828] Codecs should obfuscate leaves marked with openconfig-hashed-value Created: 11/Nov/17 Updated: 11/Nov/17 |
|
| Status: | Confirmed |
| Project: | yangtools |
| Component/s: | codecs |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
OpenConfig defines an extension which allows marking leaves as containing confidential information. Both JSON and XML codecs should recognize this marking and ensure plaintext is not encoded. Since XML/JSON can be used for both backups (where we need plaintext) and normal NETCONF/RESTCONF operation (where we need to emit a hash), this needs to be configurable when the serializer is instantiated. Parsing should not be affected by this feature. |