XLT
XLT copied to clipboard
Secret properties don't override their plain counterpart
Design spec says: Internally, you should in most cases not have to know that a certain property is secret. Hence a defined property secret.foobar is visible via the property API as secret.foobar and foobar. If a normal property foobar is set, the secret version overwrites it.
To be precise, the secret cannot override it, it must remove it, otherwise we would leak the secret.
The property is not accessible normally getProperty but still logged and in the properties when we iterate over. Regular access is not exposing it.
If the secret defines key = value
, any key
that exists will be removed prior to adding the data from the secret. If we onyl set secret.key = value
, we don't remove what is already in existence as key
but cannot access it via the normal properties only when we get us a copy.