Skip to content

Conversation

@uubk
Copy link

@uubk uubk commented Sep 30, 2024

This should address #1241 - windows doesn't have /bin/sh.
However, using cmd instead is also not quite straightforward since exec.Command has some pitfalls on windows. This implements the suggested upstream workaround and allows us to launch mfa_process correctly on windows, even if the binary is in a path with spaces.

Windows doesn't have /bin/sh - use cmd instead if executing an MFA
command on windows.
@Mishco
Copy link

Mishco commented Jul 2, 2025

I like this idea of a separate unix/windows Mfa process. Currently there is only a "solution" using WSL on Windows, which can be really slow.

@@ -0,0 +1,22 @@
//go:build !windows
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably needs to be: darwin || freebsd || openbsd || linux

@mbevc1
Copy link

mbevc1 commented Jul 7, 2025

Proposed feature looks good, would you mind opening a PR in the fork https://github.com/ByteNess/aws-vault ?

@mbevc1
Copy link

mbevc1 commented Jul 8, 2025

Opened a PR in the fork and should be solved there: ByteNess#50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants