Skip to content
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

Do not blindly accept remote certificate when using trust token #529

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

MusicDin
Copy link
Member

Closes #520

@MusicDin MusicDin force-pushed the fix/token-remote-cert branch from 5f4fd30 to 5687f76 Compare September 20, 2024 16:15
@simondeziel
Copy link
Member

https://github.com/terraform-lxd/terraform-provider-lxd/actions/runs/10962720240/job/30442627935?pr=529#step:8:339:

certificate signed by unknown authority

Sounds like its trying to do "regular" TLS verification without having the remote's .crt pinned/saved in the local trust store and used as trust anchor.

@MusicDin MusicDin force-pushed the fix/token-remote-cert branch 3 times, most recently from 73664f6 to d4784a1 Compare September 20, 2024 18:51
@MusicDin MusicDin marked this pull request as ready for review September 20, 2024 19:11
internal/provider-config/config.go Outdated Show resolved Hide resolved
internal/provider-config/config.go Outdated Show resolved Hide resolved
internal/provider-config/config.go Outdated Show resolved Hide resolved
internal/provider-config/config.go Outdated Show resolved Hide resolved
internal/provider-config/config.go Outdated Show resolved Hide resolved
Reset of environment variables is already called in a defer

Signed-off-by: Din Music <[email protected]>
@MusicDin MusicDin force-pushed the fix/token-remote-cert branch from 28175ba to d82682d Compare September 23, 2024 19:10
@simondeziel simondeziel merged commit 40eacc7 into terraform-lxd:main Sep 23, 2024
9 checks passed
@MusicDin MusicDin deleted the fix/token-remote-cert branch September 23, 2024 21:41
@MusicDin MusicDin added the bug label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TF should not allow accepting the LXD server's cert when using a token
2 participants