Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

New vault support breaks the tool #81

Open
bruecktech opened this issue Apr 30, 2021 · 5 comments
Open

New vault support breaks the tool #81

bruecktech opened this issue Apr 30, 2021 · 5 comments

Comments

@bruecktech
Copy link

bruecktech commented Apr 30, 2021

Hello,

the latest commit to master broke the tool for us. It errors out on startup with this message shown below.

Could you please have a look?

Thank you!

time="2021-04-30T05:51:42Z" level=debug msg="Post \"/v1/auth/kubernetes/login\": unsupported protocol scheme \"\"\nrequest failed\ngithub.com/mittwald/vaultgo.(*Client).Request\n\t/build/vendor/github.com/mittwald/vaultgo/client.go:119\ngithub.com/mittwald/vaultgo.(*Client).Write\n\t/build/vendor/github.com/mittwald/vaultgo/client.go:158\ngithub.com/mittwald/vaultgo.kubernetesAuth.Auth\n\t/build/vendor/github.com/mittwald/vaultgo/kubernetes_auth.go:85\ngithub.com/mittwald/vaultgo.(*Client).renewToken\n\t/build/vendor/github.com/mittwald/vaultgo/client.go:89\ngithub.com/mittwald/vaultgo.NewClient\n\t/build/vendor/github.com/mittwald/vaultgo/client.go:80\ngithub.com/rebuy-de/node-drainer/v2/pkg/vaultutil.(*Params).Client\n\t/build/pkg/vaultutil/params.go:51\ngithub.com/rebuy-de/node-drainer/v2/pkg/vaultutil.(*Params).AWSCredentialProvider\n\t/build/pkg/vaultutil/params.go:56\ngithub.com/rebuy-de/node-drainer/v2/pkg/vaultutil.(*Params).AWSSession\n\t/build/pkg/vaultutil/params.go:69\ngithub.com/rebuy-de/node-drainer/v2/cmd.(*Runner).Run\n\t/build/cmd/runner.go:48\ngithub.com/rebuy-de/rebuy-go-sdk/v3/pkg/cmdutil.wrapRootConext.func1\n\t/build/vendor/github.com/rebuy-de/rebuy-go-sdk/v3/pkg/cmdutil/context.go:46\ngithub.com/spf13/cobra.(*Command).execute\n\t/build/vendor/github.com/spf13/cobra/command.go:856\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/build/vendor/github.com/spf13/cobra/command.go:960\ngithub.com/spf13/cobra.(*Command).Execute\n\t/build/vendor/github.com/spf13/cobra/command.go:897\nmain.main\n\t/build/main.go:12\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\ngithub.com/rebuy-de/node-drainer/v2/pkg/vaultutil.(*Params).Client\n\t/build/pkg/vaultutil/params.go:52\ngithub.com/rebuy-de/node-drainer/v2/pkg/vaultutil.(*Params).AWSCredentialProvider\n\t/build/pkg/vaultutil/params.go:56\ngithub.com/rebuy-de/node-drainer/v2/pkg/vaultutil.(*Params).AWSSession\n\t/build/pkg/vaultutil/params.go:69\ngithub.com/rebuy-de/node-drainer/v2/cmd.(*Runner).Run\n\t/build/cmd/runner.go:48\ngithub.com/rebuy-de/rebuy-go-sdk/v3/pkg/cmdutil.wrapRootConext.func1\n\t/build/vendor/github.com/rebuy-de/rebuy-go-sdk/v3/pkg/cmdutil/context.go:46\ngithub.com/spf13/cobra.(*Command).execute\n\t/build/vendor/github.com/spf13/cobra/command.go:856\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/build/vendor/github.com/spf13/cobra/command.go:960\ngithub.com/spf13/cobra.(*Command).Execute\n\t/build/vendor/github.com/spf13/cobra/command.go:897\nmain.main\n\t/build/main.go:12\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\ngithub.com/rebuy-de/node-drainer/v2/pkg/vaultutil.(*Params).AWSCredentialProvider\n\t/build/pkg/vaultutil/params.go:58\ngithub.com/rebuy-de/node-drainer/v2/pkg/vaultutil.(*Params).AWSSession\n\t/build/pkg/vaultutil/params.go:69\ngithub.com/rebuy-de/node-drainer/v2/cmd.(*Runner).Run\n\t/build/cmd/runner.go:48\ngithub.com/rebuy-de/rebuy-go-sdk/v3/pkg/cmdutil.wrapRootConext.func1\n\t/build/vendor/github.com/rebuy-de/rebuy-go-sdk/v3/pkg/cmdutil/context.go:46\ngithub.com/spf13/cobra.(*Command).execute\n\t/build/vendor/github.com/spf13/cobra/command.go:856\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/build/vendor/github.com/spf13/cobra/command.go:960\ngithub.com/spf13/cobra.(*Command).Execute\n\t/build/vendor/github.com/spf13/cobra/command.go:897\nmain.main\n\t/build/main.go:12\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\ngithub.com/rebuy-de/node-drainer/v2/pkg/vaultutil.(*Params).AWSSession\n\t/build/pkg/vaultutil/params.go:71\ngithub.com/rebuy-de/node-drainer/v2/cmd.(*Runner).Run\n\t/build/cmd/runner.go:48\ngithub.com/rebuy-de/rebuy-go-sdk/v3/pkg/cmdutil.wrapRootConext.func1\n\t/build/vendor/github.com/rebuy-de/rebuy-go-sdk/v3/pkg/cmdutil/context.go:46\ngithub.com/spf13/cobra.(*Command).execute\n\t/build/vendor/github.com/spf13/cobra/command.go:856\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/build/vendor/github.com/spf13/cobra/command.go:960\ngithub.com/spf13/cobra.(*Command).Execute\n\t/build/vendor/github.com/spf13/cobra/command.go:897\nmain.main\n\t/build/main.go:12\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371"
time="2021-04-30T05:51:42Z" level=error msg="request failed: Post \"/v1/auth/kubernetes/login\": unsupported protocol scheme \"\""
@bjoernhaeuser
Copy link
Member

Hi!

Sorry for that.

We will come up with a better solution to this, but for now you can use this sha256 sum to pull in the last version:

docker pull quay.io/rebuy/node-drainer@sha256:7ceb5108785e65bd5ec46a945931dcc9620437585be38f51af4e72c03eef3df0

@bruecktech
Copy link
Author

Hey

no worries, thanks for the quick reply.
The problem is that we need the previous sha as the current master image is broken. But the previous sha is already gone from quay.io

@svenwltr
Copy link
Member

Hello.

Sorry for that. We honestly did not expect that anyone is using the node-drainer. As a hotfix I prepared a new Quay tag: quay.io/rebuy/node-drainer:d3c9fab. We will think about how to continue from here.

@bruecktech
Copy link
Author

Hi,

thanks a lot for the workaround already. Totally can understand that the tool was mostly used internally :-)

@svenwltr
Copy link
Member

svenwltr commented May 6, 2021

Hello. I just merged #83 and it should provide backwards compatibility. Nevertheless that is not tested yet and we try to tackle #80 next week.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants