How does Azure Bastion monitor the clipboard?

jimk889 1 Reputation point
2021-03-19T22:19:14.467+00:00

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
Azure Bastion
An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.
247 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. SaiKishor-MSFT 17,221 Reputation points
    2021-03-20T00:45:12.54+00:00

    @jimk889 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!


  2. SaiKishor-MSFT 17,221 Reputation points
    2021-03-23T18:03:04.113+00:00

    @jimk889

    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.

    0 comments No comments