Skip to content

hcloud: init plugin - #87

Merged
SimonBarendse merged 1 commit into
1Password:mainfrom
shyim:add-hetzner
Dec 19, 2022
Merged

SimonBarendse merged 1 commit into
1Password:mainfrom
shyim:add-hetzner

Conversation

@shyim

@shyim shyim commented Dec 9, 2022

Copy link
Copy Markdown
Contributor

Adds support for hcloud from Hetzner well known hosting provider in Germany also expanding to US right now

@florisvdg florisvdg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice! And thanks for adding a test as well.

Comment thread plugins/hcloud/api_token_test.go Resolved
DCKcode
DCKcode previously approved these changes Dec 9, 2022
@shyim

shyim commented Dec 17, 2022

Copy link
Copy Markdown
Contributor Author

Is fixed. Sorry for the delay :)

@SimonBarendse
SimonBarendse merged commit ecf9bd0 into 1Password:main Dec 19, 2022
@notDavid

Copy link
Copy Markdown

Hi there, noob question;

when following the steps here i run:

$ hcloud context create my-project
The HCLOUD_TOKEN environment variable is set. Do you want to use the token from HCLOUD_TOKEN for the new context? (Y/n):
$ y

and then my API key gets permanently stored in plain text in /Users/david/.config/hcloud/cli.tom

Is this expected / intended behavior ?

@shyim

shyim commented Sep 14, 2025 •

Copy link
Copy Markdown
Contributor Author

yes. you need to import the key into 1password vault and it overrides it then. op plugin init hcloud

@notDavid

notDavid commented Sep 15, 2025 •

Copy link
Copy Markdown

@shyim Yep, i had done that, as i followed the steps in the guide i had linked to:

rm /Users/david/.config/hcloud/cli.tom

Guide:

op signin
op plugin init hcloud
# search in Password > "Prompt me for each new terminal session"
source ~/.config/op/plugins.sh
echo "source ~/.config/op/plugins.sh" >> ~/.bashrc && source ~/.bashrc

(So, it still saves the password in plain text.)

@notDavid

Copy link
Copy Markdown

For the record, it's the last step that saves the password in plain text:

hcloud context create my-project
# i then get prompted for TouchID
@notDavid

Copy link
Copy Markdown

@shyim Should i create a new issue for this?

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

Labels

None yet

5 participants