Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionHow do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Rod at work4-Oct-23 11:32
Rod at work4-Oct-23 11:32 
AnswerRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Richard MacCutchan4-Oct-23 20:55
mveRichard MacCutchan4-Oct-23 20:55 
GeneralRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Rod at work5-Oct-23 2:38
Rod at work5-Oct-23 2:38 
GeneralRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Richard MacCutchan5-Oct-23 2:43
mveRichard MacCutchan5-Oct-23 2:43 
GeneralRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Rod at work5-Oct-23 3:24
Rod at work5-Oct-23 3:24 
GeneralRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Rod at work5-Oct-23 3:54
Rod at work5-Oct-23 3:54 
GeneralRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Richard MacCutchan5-Oct-23 4:18
mveRichard MacCutchan5-Oct-23 4:18 
AnswerRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
jschell5-Oct-23 5:48
jschell5-Oct-23 5:48 
Rod at work wrote:
The only thing is, how do I do that


By providing a key that only shows up on a developer machine. Such as a specific single env variable. It only exists on dev machines. The code uses different code based on whether that exists or not.

The env variable does not provide security information itself. It just exists.

That allows for no security problems because if it starts existing on a prod box nothing will work.

This solves your github problem.


Rod at work wrote:
However, we have hundreds of custom apps...And NEVER, EVER update or upgrade it!!!


(From other posts)

Which is exactly correct. If you bring an app forward then that tech debt activity should make NO functional changes except those necessary to bring it forward. These days one can often make that case to do that for existing code both for obsolesce and security reasons.

But besides that presumably those apps are already managing secret information via some mechanism and you should not attempt to use another idiom unless there is a real need. It does not add value to have multiple idioms that one must know to provide maintenance and just to do development.
GeneralRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Rod at work5-Oct-23 10:33
Rod at work5-Oct-23 10:33 
GeneralRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
jschell6-Oct-23 7:10
jschell6-Oct-23 7:10 
QuestionBeginner: Return properties from another Class Pin
Member 159530273-Oct-23 23:58
Member 159530273-Oct-23 23:58 
AnswerRe: Beginner: Return properties from another Class Pin
Gerry Schmitz4-Oct-23 4:32
mveGerry Schmitz4-Oct-23 4:32 
AnswerRe: Beginner: Return properties from another Class Pin
Dave Kreskowiak4-Oct-23 5:36
mveDave Kreskowiak4-Oct-23 5:36 
QuestionUsing await/async Correctly Pin
Kevin Marois25-Sep-23 12:30
professionalKevin Marois25-Sep-23 12:30 
AnswerRe: Using await/async Correctly Pin
Gerry Schmitz25-Sep-23 16:13
mveGerry Schmitz25-Sep-23 16:13 
GeneralRe: Using await/async Correctly Pin
Kevin Marois25-Sep-23 16:49
professionalKevin Marois25-Sep-23 16:49 
GeneralRe: Using await/async Correctly Pin
Gerry Schmitz25-Sep-23 17:06
mveGerry Schmitz25-Sep-23 17:06 
AnswerRe: Using await/async Correctly Pin
Richard Deeming25-Sep-23 21:52
mveRichard Deeming25-Sep-23 21:52 
QuestionWin Forms, WPF, WinUI 3 Pin
Member 1210196924-Sep-23 10:04
Member 1210196924-Sep-23 10:04 
AnswerRe: Win Forms, WPF, WinUI 3 Pin
Gerry Schmitz24-Sep-23 18:08
mveGerry Schmitz24-Sep-23 18:08 
AnswerRe: Win Forms, WPF, WinUI 3 Pin
#realJSOP19-Mar-24 2:50
mve#realJSOP19-Mar-24 2:50 
Question.NET 4.7 Desktop Form combox coloring within datagridview Pin
.NET4Ever22-Sep-23 4:50
.NET4Ever22-Sep-23 4:50 
AnswerRe: .NET 4.7 Desktop Form combox coloring within datagridview Pin
Alan N22-Sep-23 13:40
Alan N22-Sep-23 13:40 
GeneralRe: .NET 4.7 Desktop Form combox coloring within datagridview Pin
.NET4Ever25-Sep-23 4:02
.NET4Ever25-Sep-23 4:02 
QuestionWhat are Custom Control and User Control? Pin
Emmanuel Katto22-Sep-23 1:31
professionalEmmanuel Katto22-Sep-23 1:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.