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

[17.06] middleware: Redact secret data on "secret create" #99

Merged
merged 1 commit into from
Jul 12, 2017
Merged

[17.06] middleware: Redact secret data on "secret create" #99

merged 1 commit into from
Jul 12, 2017

Conversation

andrewhsu
Copy link
Contributor

@andrewhsu andrewhsu commented Jul 6, 2017

Backport fix:

With cherry-pick moby/moby@3fbc352:

$ git cherry-pick -s -x -Xsubtree=components/engine 3fbc352

No conflicts.

With debug logging turned on, we currently log the base64-encoded secret
payload.

Change the middleware code to redact this. Since the field is called
"Data", it requires some context-sensitivity. The URI path is examined
to see which route is being invoked.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
(cherry picked from commit 3fbc352)
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

ping @cyli @aaronlehmann

@andrewhsu andrewhsu modified the milestone: 17.06.1 Jul 12, 2017
@cyli
Copy link
Contributor

cyli commented Jul 12, 2017

This looks correct to me, and matches what's currently in moby/moby.

@andrewhsu andrewhsu merged commit 7a50b06 into docker-archive:17.06 Jul 12, 2017
@andrewhsu andrewhsu deleted the redact branch July 12, 2017 21:37
thaJeztah pushed a commit to thaJeztah/docker-ce that referenced this pull request Apr 3, 2018
Add Ubuntu 18.04 arm64 builds
Upstream-commit: bad901e
Component: packaging
docker-jenkins pushed a commit that referenced this pull request Oct 31, 2018
[18.09] cluster: set bigger grpc limit for array requests
Upstream-commit: fb51c760c4fed545a83a6b6f88716e5d6bb8b1f0
Component: engine
silvin-lubecki pushed a commit to silvin-lubecki/docker-ce that referenced this pull request Jan 30, 2020
silvin-lubecki pushed a commit to silvin-lubecki/docker-ce that referenced this pull request Feb 3, 2020
[17.06] middleware: Redact secret data on "secret create"
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.

4 participants