-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Cannot copy from UI into Clipboard Vault 1.16.2 #26831
Comments
I've tried reproducing this issue but the copying works fine. As you pointed out, by using a root token, it eliminates possible policy issues, which are a common cause for this type of issue. Could you recheck the issue with possibly a different browser or see if you can capture the console logs from your browser when the issue occurs? |
I have this issue as well. I assume it is because the clipboard api requires a secure enviroment which is not the case when the vault is running without TLS on a non local setup. More info about it here: The same issue is here as well #26492 |
Makes sense, I was using HTTP with Chrome. I will re-run the test using Firefox with both HTTP and HTTPS. |
I just installed Firefox version 125.0.3 and didn't encounter this issue when using HTTP. I don't doubt that this is indeed the issue, as this is the second time I've seen this reported this week. I'll discuss with the team if there's anything that can be reasonably done to inform the users that Clipboard copying might fail when using HTTP. |
Yes , I am currently using HTTP and window.issecureContext returns false. By the way I am going to migrate to HTTPS soon so I expect that this issue will go away |
Thanks @GJSBRT for the added context. |
Describe the bug
After having upgraded Vault from 1.15.6 to 1.16.2 the copy to clipboard feature does not work anymore.
I have both KV secret engine and PKI configured and it fails on both of them.
I have tried also with the root token so I don't think that it is a policy issue
Currently I am accessing Vault through HTTP and I found the issue after having generated a certificate using PKI and failed to copy it and the private key from UI to clipboard
To Reproduce
Steps to reproduce the behavior:
I tried to add the vault site to have permission to read clipboard in chrome but it did not work
Expected behavior
The UI content copied in the clipboard
Exactly the same configuration worked with Vault 1.15.6
Environment:
vault status
): 1.16.2vault version
): 1.16.2Vault server configuration file(s):
The text was updated successfully, but these errors were encountered: