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
Today, we can only use ClearTextPassword in nuget.config , for a team that share a private nuget feed without manully input password.
but it'll leak the password in git. and apikey in nuget.config depends on WinDPApi which it's not cross platfrom.
my idea
my idea is that let the nuget system understand the environment variables and the dotnet secret.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<addkey="nuget"value="https://api.nuget.org/v3/index.json" />
<addkey="myfeed"value="http://mynugetfeed/packages/nuget/index.json"allowInsecureConnections="true" />
</packageSources>
<packageSourceCredentials>
<gitlab>
<addkey="Username"value="$(env:myfeed_username)" /> <!-- read from environment variables -->
<addkey="ClearTextPassword"value="$(scret:myfeed_password)" /><!-- read from dotnet secret -->
<addkey="ApiKey"value="$(scret:myfeed_apikey)" /><!-- we can choose to use (username + password ) or (apikey) -->
</gitlab>
</packageSourceCredentials>
</configuration>
for set those key , the default way is to use "dotnet secret" to store the value var CLI
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
background
Today, we can only use
ClearTextPasswordin nuget.config , for a team that share a private nuget feed without manully input password.but it'll leak the password in git. and
apikeyin nuget.config depends on WinDPApi which it's not cross platfrom.my idea
my idea is that let the nuget system understand the
environment variablesand thedotnet secret.for set those key , the default way is to use "dotnet secret" to store the value var CLI
what guid should nuget use ?
I think for nuget there should be a fixed GUID for
dotnet secretBeta Was this translation helpful? Give feedback.
All reactions