Skip to content

docs: fix psk secret cmd #9524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 6, 2023
Merged

docs: fix psk secret cmd #9524

merged 2 commits into from
Sep 6, 2023

Conversation

ericpaulsen
Copy link
Member

@ericpaulsen ericpaulsen commented Sep 5, 2023

this PR fixes the kubectl command to create the PSK secret needed to run a provisioner daemon. i received several errors when running the command, including:

head: illegal byte count -- 26`
error: exactly one NAME is required, got 2
tr: Illegal byte sequence

by leveraging the openssl rand command with the $() syntax, the secret creates successfully with no errors. in addition, I successfully tested a deployment with the created secret.

@ericpaulsen ericpaulsen added the docs Area: coder.com/docs label Sep 5, 2023
@ericpaulsen ericpaulsen self-assigned this Sep 5, 2023
@ericpaulsen ericpaulsen added the bug label Sep 5, 2023
@spikecurtis
Copy link
Contributor

Are you on macOS by any chance? I think tr acts differently there.

I don't want to do plain base64 since the = is interpreted by our CLI library.

Co-authored-by: Spike Curtis <spike@coder.com>
@matifali matifali removed the bug label Sep 5, 2023
@ericpaulsen ericpaulsen merged commit 4ec2fea into main Sep 6, 2023
@ericpaulsen ericpaulsen deleted the fix-psk-secret branch September 6, 2023 13:04
@github-actions github-actions bot locked and limited conversation to collaborators Sep 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
docs Area: coder.com/docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants