Skip to content

Update guacamole-user-sync to v0.8.1 - #2662

Merged
cptanalatriste merged 6 commits into
alan-turing-institute:developfrom
cptanalatriste:258-update-guacamole-user-sync
Sep 7, 2026
Merged

Update guacamole-user-sync to v0.8.1#2662
cptanalatriste merged 6 commits into
alan-turing-institute:developfrom
cptanalatriste:258-update-guacamole-user-sync

Conversation

@cptanalatriste

@cptanalatriste cptanalatriste commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

✅ Checklist

  • You have given your pull request a meaningful title (e.g. Enable foobar integration rather than 515 foobar).
  • You are targeting the appropriate branch. If you're not certain which one this is, it should be develop.
  • Your branch is up-to-date with the target branch (it probably was when you started, but it may have changed since then).

🚦 Depends on

N/A

⤴️ Summary

As previously reported, TRE users experienced Guacamole connections randomly disappearing (see: #2480 ). Our analysis showed the problem was originated due to a bug in the guacamole-user-sync container, that was finally addressed in version v0.8.1 (see: https://github.com/alan-turing-institute/guacamole-user-sync/pull/32/changes and alan-turing-institute/guacamole-user-sync#35).

The current PR updates DSH to support guacamole-user-sync new version. In v0.8.1, is required to pass each groups permissions via environment variables so they can be restored (details at: https://github.com/alan-turing-institute/guacamole-user-sync/blob/main/README.md ).

🌂 Related issues

Closes: #2480

🔬 Tests

We have added some automated tests to verify that the container has the right versions and that each group's permissions are properly configured. The changes also include a refactoring of the existing test suite.

We also performed the following verification in a test deployment:

  • Deploy a TRE, and confirm that the connections are present and working.
  • Manually clear the contents of the guacamole_connection_permissions table, as described in Guacamole connections randomly dissapear #2480
  • Verify that the connections are missing, as reported in the issue.
  • Wait until the guacamole-user-sync process runs again. Currently, it runs every 5 minutes.
  • Verify that the connections are present again, and working properly.

cptanalatriste and others added 3 commits August 26, 2026 14:21
@cptanalatriste
cptanalatriste requested a review from a team as a code owner September 3, 2026 15:27
@cptanalatriste
cptanalatriste marked this pull request as draft September 3, 2026 15:28
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  data_safe_haven/infrastructure/programs/sre
  remote_desktop.py
Project Total  

This report was generated by python-coverage-comment-action

@cptanalatriste
cptanalatriste marked this pull request as ready for review September 3, 2026 15:55

@llewelld llewelld left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. The changes all look very sensible and align with what I'd expect to be needed for the guacamole-user-sync functionality you've added. I've not deployed an SRE myself to test this but am confident that the tests you describe in the description look sufficient.

The new tests are also nice. I added a few comments, but none of them are critical, so I'm approving as well.

Comment thread tests/infrastructure/programs/sre/test_remote_desktop.py Outdated
Comment thread tests/infrastructure/programs/sre/test_remote_desktop.py Outdated
Comment thread tests/infrastructure/programs/sre/test_remote_desktop.py Outdated
@cptanalatriste
cptanalatriste merged commit 3143c83 into alan-turing-institute:develop Sep 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Guacamole connections randomly dissapear

2 participants