Click here to Skip to main content
15,844,752 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 12:32
Rod at work4-Oct-23 12:32 
AnswerRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Richard MacCutchan4-Oct-23 21:55
mveRichard MacCutchan4-Oct-23 21:55 
GeneralRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Rod at work5-Oct-23 3:38
Rod at work5-Oct-23 3:38 
GeneralRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Richard MacCutchan5-Oct-23 3:43
mveRichard MacCutchan5-Oct-23 3:43 
GeneralRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Rod at work5-Oct-23 4:24
Rod at work5-Oct-23 4:24 
GeneralRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Rod at work5-Oct-23 4:54
Rod at work5-Oct-23 4:54 
GeneralRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
Richard MacCutchan5-Oct-23 5:18
mveRichard MacCutchan5-Oct-23 5:18 
AnswerRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
jschell5-Oct-23 6:48
jschell5-Oct-23 6: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 11:33
Rod at work5-Oct-23 11:33 
GeneralRe: How do I use Visual Studio user secrets and GitHub secrets, in the same project? Pin
jschell6-Oct-23 8:10
jschell6-Oct-23 8:10 
QuestionBeginner: Return properties from another Class Pin
Member 159530274-Oct-23 0:58
Member 159530274-Oct-23 0:58 
AnswerRe: Beginner: Return properties from another Class Pin
Gerry Schmitz4-Oct-23 5:32
mveGerry Schmitz4-Oct-23 5:32 
AnswerRe: Beginner: Return properties from another Class Pin
Dave Kreskowiak4-Oct-23 6:36
mveDave Kreskowiak4-Oct-23 6:36 
QuestionUsing await/async Correctly Pin
Kevin Marois25-Sep-23 13:30
professionalKevin Marois25-Sep-23 13:30 
AnswerRe: Using await/async Correctly Pin
Gerry Schmitz25-Sep-23 17:13
mveGerry Schmitz25-Sep-23 17:13 
GeneralRe: Using await/async Correctly Pin
Kevin Marois25-Sep-23 17:49
professionalKevin Marois25-Sep-23 17:49 
GeneralRe: Using await/async Correctly Pin
Gerry Schmitz25-Sep-23 18:06
mveGerry Schmitz25-Sep-23 18:06 
AnswerRe: Using await/async Correctly Pin
Richard Deeming25-Sep-23 22:52
mveRichard Deeming25-Sep-23 22:52 
QuestionWin Forms, WPF, WinUI 3 Pin
Member 1210196924-Sep-23 11:04
Member 1210196924-Sep-23 11:04 
AnswerRe: Win Forms, WPF, WinUI 3 Pin
Gerry Schmitz24-Sep-23 19:08
mveGerry Schmitz24-Sep-23 19:08 
Question.NET 4.7 Desktop Form combox coloring within datagridview Pin
.NET4Ever22-Sep-23 5:50
.NET4Ever22-Sep-23 5:50 
AnswerRe: .NET 4.7 Desktop Form combox coloring within datagridview Pin
Alan N22-Sep-23 14:40
Alan N22-Sep-23 14:40 
GeneralRe: .NET 4.7 Desktop Form combox coloring within datagridview Pin
.NET4Ever25-Sep-23 5:02
.NET4Ever25-Sep-23 5:02 
QuestionWhat are Custom Control and User Control? Pin
Emmanuel Katto22-Sep-23 2:31
professionalEmmanuel Katto22-Sep-23 2:31 
AnswerRe: What are Custom Control and User Control? Pin
OriginalGriff22-Sep-23 3:23
mveOriginalGriff22-Sep-23 3:23 

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.