question

jimk889-7596 avatar image
0 Votes"
jimk889-7596 asked SaiKishor-MSFT answered

How does Azure Bastion monitor the clipboard?

Bastion sessions have this fantastic feature of keeping the clipboard synced between the remote machine and the accessing machine.

Based on the initial request to access the clipboard by the browser we receive when we open a Bastion session, I can tell that it uses the clipboard API, https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API.

But how does it achieve monitoring of the clipboard? Does it query the clipboard every x seconds to see if the contents have changed? It seems too fast for that to be the case here.

azure-bastion
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SaiKishor-MSFT avatar image
0 Votes"
SaiKishor-MSFT answered jimk889-7596 commented

@jimk889-7596 Unfortunately this is internal information and cannot be shared. Please let us know if you have any other questions and we will be glad to answer. Thank you!

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you, I completely understand that this can't be shared. Could you at least let me know if it is making repeated queries to the clipboard? Because I'm trying to figure out some problems my specific browser is having with bastion and I suspect it is partially related to this clipboard functionality. How does bastion know when the clipboard has changed is all I want to know, and I cannot think of any way other than checking it periodically.

0 Votes 0 ·
SaiKishor-MSFT avatar image
0 Votes"
SaiKishor-MSFT answered

@jimk889-7596

We are doing it via browser's 'cut' and 'copy' events. This is done via
https://developer.mozilla.org/en-US/docs/Web/API/Element/cut_event
https://developer.mozilla.org/en-US/docs/Web/API/Element/copy_event

Hope this helps. Let us know if you have anymore questions. Thank you!

Remember:

Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

Want a reminder to come back and check responses? Here is how to subscribe to a notification.






5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.