arodus / azure-keyvault Goto Github PK
View Code? Open in Web Editor NEWAzure Keyvault addon
Home Page: http://www.nuke.build/
License: MIT License
Azure Keyvault addon
Home Page: http://www.nuke.build/
License: MIT License
When using KeyVaultSecretAttribute
and KeyVaultSettingsAttribute
, you get an NotSupportedException
when trying to get the value. This is due to a call for getting MemberType
with null
value.
The problematic code is in KeyVaultSettingsAttribute
here:
` [NotNull]
public override object GetValue(MemberInfo member, object instance)
{
var memberType = member.GetMemberType();
ControlFlow.Assert(memberType == typeof(KeyVaultSettings), "memberType == typeof(KeyVaultConfiguration)");
AssertIsValid();
return new KeyVaultSettings
{
ClientId = string.IsNullOrWhiteSpace(ClientId) ? GetParameter(ClientIdParameterName, instance) : ClientId,
BaseUrl = string.IsNullOrWhiteSpace(BaseUrl) ? GetParameter(BaseUrlParameterName, instance) : BaseUrl,
Secret = GetParameter(ClientSecretParameterName, instance)
};
}
public KeyVaultSettings GetValue(object instance)
{
return (KeyVaultSettings) GetValue(member: null, instance);
}`
Attributes in the library still use the old way of using ParameterService
, while it was still public.
Now that it is internal, they fail in runtime if you use it with newer version of Nuke.Common.
Suggested fix:
Replace code like new ParameterService().GetParameter<string>(secretName)
with EnvironmentInfo..GetParameter<string>(secretName)
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.