-
Notifications
You must be signed in to change notification settings - Fork 548
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
[Enhancement]: Support allow_empty_principals on vault_ssh_secret_backend_role #2340
Comments
Came here after issues search for the same thing. Would be very nice to have in the next release. |
Hi @fairclothjm, I was wondering when the new version of the provider will be available please? I've noticed the |
Hi @lauracraciun90 ! I am sorry you are having issues. We try to do a release in the middle of each month. We are planning to do one within the week. Unfortunately, I don't have any workarounds at this time. |
Hi @fairclothjm, thanks very much indeed for your reply :) That's good to know - will wait for the new release to become available in the next few days. |
Hi @fairclothjm thanks very much for the update! :) I've upgraded the vault provider to version 4.50 and tried to incorporate the flag in our setup, however, it still doesn't fix the problem for us. Should the field be used within the I've also tried to add the flag to the API call to Vault, however, this doesn't work either, and I'm still getting the empty service principals error. Please could you give me some more info on this if possible? Many thanks! |
We've been using the following command as a workaround before the attribute was available: I just tried 4.5.0 and the field is available, however it isn't documented (here): resource "vault_ssh_secret_backend_role" "host" {
// ...
allow_empty_principals = true
} Note that without an additional rule, this will create a permanent drift as the field is not returned when fetching the object. |
Hi @Sayrus, many thanks for your reply, I really appreciate it :) I've re-tried to upgrade to version
|
@lauracraciun90 Unfortunately that sounds like an issue with the tests or a lockfile not updated to reflect the upgrade to 4.5.0. As it sounds like a custom setup, I won´t be able to provide a workaround to make that part work. |
Hi @Sayrus, I've just checked the lockfile for the environment whereby the tests ran and sure enough, I missed to update the vault provider version to The tests are passing now and the Thanks ever so much for your help, I really appreciate it! :) |
Glad it got resolved! Thanks for calling out the missing docs! I have a PR up to update the docs. |
Description
hashicorp/vault#28466 introduces a breaking change (Vault 1.18, backported to 1.17) for SSH Backend by disallowing empty roles by default. Unfortunately, it is currently not possible to set
allow_empty_principals
from Terraform.Sign done without principals return:
Affected Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
hashicorp/vault#28466
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: