Repository navigation
Stripping writeOnlyProperties when recording progress - #222
Conversation
|
I think we should probably redact the values of the Will approve for now, but should fix post merge I think. |
This really only affects when progress is recorded for a handler. When reporting the model on progress updates, I would expect it to be the same model returned by the read handler. Should the read handler also return a model with redacted writeOnly properties? At least for redacting, we would just would have to think about how to handle the various types of things that need to be redacted. |
Yes, and that should be enforced via Contract Tests. That's the whole point of |
How would the read handler be aware of the write only properties? i feel like it would just leave them out |
Issue #, if available: #221
Description of changes: This strips writeOnlyProperties from being logged and recorded via the RecordHandlerProgress API. Tested with a handler before and after adding the removal. writeOnlyProperty is "Password" in below logs:
After adding removal code:
This is pending #220 and aws-cloudformation/cloudformation-resource-schema#73
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.