Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Remove content field from SecretDetailResponseV2 #324

Merged
merged 1 commit into from
Apr 10, 2017

Conversation

jbpeirce
Copy link
Contributor

The content field in SecretDetailResponseV2 was never set in Keywhiz, making its presence confusing.

SecretDetailResponseV2 is returned from automation endpoints, which return information on any existing secrets to any automation client. Returning unencrypted secret contents in this situation leaks information unnecessarily (note that automation clients can assign secrets to themselves and view the contents using the SecretDeliveryResource, leaving an audit trail in the process).

This PR also removes a pair of constructors for SecretDetailResponseV2 (building it from a Secret and from a SecretSeries) which were unused except in tests. They can be restored easily if necessary.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 73.333% when pulling fe682d0 on jessep/remove-content-field-in-secret-response-v2 into 1e61abe on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 73.333% when pulling 8e747c3 on jessep/remove-content-field-in-secret-response-v2 into 1e61abe on master.

@jbpeirce jbpeirce force-pushed the jessep/remove-content-field-in-secret-response-v2 branch from 8e747c3 to 1aa2a4d Compare March 30, 2017 06:03
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 1aa2a4d on jessep/remove-content-field-in-secret-response-v2 into ** on master**.

@mcpherrinm
Copy link
Contributor

This looks fine, but I'd like to make sure our clients are updated first, as this is a breaking change.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 73.333% when pulling de6ba4a on jessep/remove-content-field-in-secret-response-v2 into 92d3008 on master.

SecretDetailResponseV2 is returned only from automation
endpoints, which return information on any existing
secrets to any automation client.  Returning unencrypted
secret contents in this situation is dangerous.  The content
field was never set in Keywhiz, making its presence confusing.
@jbpeirce jbpeirce force-pushed the jessep/remove-content-field-in-secret-response-v2 branch from de6ba4a to 7980c91 Compare April 10, 2017 20:26
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 73.333% when pulling 7980c91 on jessep/remove-content-field-in-secret-response-v2 into e64a0f6 on master.

Copy link
Contributor

@mcpherrinm mcpherrinm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed we updated the json automation client in our other codebase, so this is good to go now

@jbpeirce jbpeirce merged commit c9fc7db into master Apr 10, 2017
@jbpeirce jbpeirce deleted the jessep/remove-content-field-in-secret-response-v2 branch April 10, 2017 21:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants