-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support proxy in case kms-plugin can not access key vault (#119)
- Loading branch information
1 parent
14cd0a7
commit 14bc5c4
Showing
7 changed files
with
151 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) Microsoft and contributors. All rights reserved. | ||
// | ||
// This source code is licensed under the MIT license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
|
||
package consts | ||
|
||
const ( | ||
// In proxy mode, the header is added into the requests from kms-plugin. | ||
// The proxy will check the header and forward the request to different destinations. | ||
// e.g. When the value of the header "x-azure-proxy-target" is "KeyVault", the request | ||
// is forwared to Azure Key Vault by the proxy. | ||
RequestHeaderTargetType = "x-azure-proxy-target" | ||
TargetTypeAzureActiveDirectory = "AzureActiveDirectory" | ||
TargetTypeKeyVault = "KeyVault" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.