You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-61808] Always encrypt f:password values, not just those backed by Secret #11456
Too many people get the Secret getters wrong. What if we just always returned a Secret, and had a StringConverter to handle submitted secrets and transparently decrypt again?
This would eliminate this class of problem. Only storage would really need to be done as Secret, but the internal API types wouldn't matter so much.
Test cases need to include String typed encrypted secrets, and unmatched getter/setter types.
Too many people get the Secret getters wrong. What if we just always returned a Secret, and had a StringConverter to handle submitted secrets and transparently decrypt again?
This would eliminate this class of problem. Only storage would really need to be done as Secret, but the internal API types wouldn't matter so much.
Test cases need to include String typed encrypted secrets, and unmatched getter/setter types.
Activity
jenkins-infra-bot commentedon Apr 4, 2020
Remote link associated with this issue: