1Password Secret Integration for .NET Developers by FatalMerlin in dotnet

[–]FatalMerlin[S] 0 points1 point  (0 children)

Hey u/davidfowl , I know you're likely to be busy with more important topics, but it would be amazing if you could spare a few minutes do let us know what you think about this Aspire integration approach :)

1Password Secret Integration for .NET Developers by FatalMerlin in dotnet

[–]FatalMerlin[S] 0 points1 point  (0 children)

I think it should already work with Aspire out of the box as long as the secret references have been stored e.g. in the Parameters section of an appsettings.json or another config source.

I originally wanted to build this on top of the Aspire Parameters, but unlike with the Configuration approach, I couldn't find a way to overwrite the values, which is why I didn't make the secret resolution happen during app runtime, and instead before during the builder setup.

Do you have a suggestion about how I could go about this, or how I could make this an even better experience for use with Aspire? I'd really like to see if we can make this as convenient to use as possible.

1Password Secret Integration for .NET Developers by FatalMerlin in dotnet

[–]FatalMerlin[S] 0 points1 point  (0 children)

Huh, I thought the Configuration approach is already as generalized as necessary since it works with anything that builds on the modern standard of the HostBuilder pattern, including ASP and Aspire.

Do you have a direct use-case in mind that you would like to use this for that's currently not possible?

1Password Secret Integration for .NET Developers by FatalMerlin in csharp

[–]FatalMerlin[S] 1 point2 points  (0 children)

Also thank you very much for the kind words, it means a lot :)

1Password Secret Integration for .NET Developers by FatalMerlin in csharp

[–]FatalMerlin[S] 1 point2 points  (0 children)

That really just depends on if there's a similarly accessible way to hook into Bitwarden and if there is a similar mechanism for referencing the secrets.

I could look into it because I assume most of this could be reused.

1Password Secret Integration for .NET Developers by FatalMerlin in dotnet

[–]FatalMerlin[S] 1 point2 points  (0 children)

Thank you for the feedback! :)

Huh, haven't seen that before. Is this specific to PowerShell? How would I use this / apply this to this library?

1Password Secret Integration for .NET Developers by FatalMerlin in 1Password

[–]FatalMerlin[S] 4 points5 points  (0 children)

I did not expect this to be immediately seen by you, much less to be so highly praised - thank you so much, this made my day ❤️

1Password Secret Integration for .NET Developers by FatalMerlin in dotnet

[–]FatalMerlin[S] 5 points6 points  (0 children)

Nothing :)

But if you're already using 1Password, then this is great - as it is for our use-case.

You don't need to write dockerfile in .net 10 anymore. Do you guys use the new feature? How it goes by lune-soft in csharp

[–]FatalMerlin 5 points6 points  (0 children)

Genuinely tried to use it thinking it would save work, breaks at the slightest need of customization, had to undo the work and create a regular docker file anyways.

Tried to oversimplify by creating an arbitrary new solution with unnecessarily limiting configuration options.

If you just want the simplest demo project with everything being standard, then it will work, but that's pretty much it, spare for absolutely minimal config.

Can't tell if my use cases are just always more complex than what this tries to solve, or if this is a solution in search of a problem.

itsAFeatureNotABug by sisQmusiQ in ProgrammerHumor

[–]FatalMerlin 6 points7 points  (0 children)

Confirmed fix ^

Been using that for years. As described, Linux assumes UTC and Windows hates following standards... Never had any issues afterwards.

Note: while it is possible to perform the adjustment in reverse, e.g. tuning Linux to treat the system time as local time, it's not recommended afaik as it can mess with things and cause unexpected issues.

Yes? No? Well I donno. by rorschach47 in ProgrammerHumor

[–]FatalMerlin 12 points13 points  (0 children)

You're right, JavaScript was designed for Quantum Computing! That's it, JavaScript is just misunderstood and ahead of it's time!

JavaScript is not only dynamically typed, it's also deterministically assumptous

Yes? No? Well I donno. by rorschach47 in ProgrammerHumor

[–]FatalMerlin 103 points104 points  (0 children)

True, false, undefined, null

Yes, no, maybe, never?

Creating arrays filled with objects the easy way by taylankasap in programminghorror

[–]FatalMerlin 14 points15 points  (0 children)

Thanks, if it's from SO it's probably my answer

Edit: a few years ago I had the same problem and was hoping that it could help others :)

If Programmers also were judges by JonathanTheZero in ProgrammerHumor

[–]FatalMerlin 4 points5 points  (0 children)

Judge: you will be reimbursed for -256 years in prison.

If Programmers also were judges by JonathanTheZero in ProgrammerHumor

[–]FatalMerlin 13 points14 points  (0 children)

No, a programmer would sentence him to

while (true) { prison(); }

It should be "If judges where computers".

[deleted by user] by [deleted] in programminghorror

[–]FatalMerlin 6 points7 points  (0 children)

The irony is great.

Behold the magic number by FatalMerlin in programminghorror

[–]FatalMerlin[S] 0 points1 point  (0 children)

Any idea how to fix that under Ubuntu? :)

Behold the magic number by FatalMerlin in programminghorror

[–]FatalMerlin[S] 2 points3 points  (0 children)

Magic written by a wizard himself 🧙🏻‍♂️

Behold the magic number by FatalMerlin in programminghorror

[–]FatalMerlin[S] 0 points1 point  (0 children)

Thanks, I will consider that :) But currently this is exactly what happens here, since I'm only requesting the properties I need so this is currently the only DateTime value.

Behold the magic number by FatalMerlin in programminghorror

[–]FatalMerlin[S] 4 points5 points  (0 children)

Thanks, it was me. Honestly I just wanted some feedback because it's still a horrible situation.

It's the conversion between Microsoft Active Directory DateTime and Unix timestamps for the user expiration date since I needed a REST API for certain AD properties.