URL from VNC session is not hashed

Hello,

my OpenNebula environment is for universitiy education, so many students can instantiate VMs from the same template (as a university subject). Then, each VM has by default an “admin” user that allow them develope their work. In a initial state, the “admin” password is the same for all because they have instantiated the same template.

Then, if a student (#1) want to initiate a VNC console, the URL is something like this:
https://myserver.dns.name/fireedge/sunstone/guacamole/VM_ID/vnc?zone=0 where VM_ID is the id from the VM. However, that student has the possibility to open some new tabs in the browser and test numbers as other VM ids, so if the tested number exist, a VNC sessions will be opened. It is possible that the connected VM belongs to other student (#2) but the same subject, so independently that students have changed default “admin” password, student #1 can check if student #2 is doing his/her work, copy it, change “admin” password and “take” control of a VM that it didn’t belong to him or her…

I have found these three parameters at /etc/one/fireserver-server.conf:

# JWT expiration time (minutes)
session_expiration: 180

# JWT expiration time when using remember check box (minutes)
session_remember_expiration: 3600

# Minimum time to reuse previously generated JWTs (minutes)
minimum_opennebula_expiration: 30

but these parameters control expiration time of the session (or it seems), but student #1 can restart his VNC session and continue his “check control” for other VNC sessions.

So… is it a normal behaviour or I have some configuration problem?

Is it any configuration way to hash URL from VNC connection using VM_ID and login name, for example?

Thanks in advance.

Hello,

I attach generated logs when user #103 (GID #102) opens a VNC session from user #234 (GID #104) and vice versa:

Logs generated when user #103 opens a VNC session of a VM owned by user #234:

Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: Request #103 USER/#103 USE #0
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  * USER/#103  #0
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  * ZONE/* USE *
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  * MARKETPLACE+MARKETPLACEAPP/* USE *
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  #103 USER/#103 USE+MANAGE #0
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: Permission granted
Fri Oct 23 08:59:36 2026 [Z0][ReM][D]: Req:7200 UID:103 one.user.info result SUCCESS, "<USER><ID>103</ID><G..."
Fri Oct 23 08:59:36 2026 [Z0][ReM][DD]: Number of active connections: 1
Fri Oct 23 08:59:36 2026 [Z0][ReM][DD]: Number of active connections: 2
Fri Oct 23 08:59:36 2026 [Z0][ReM][D]: Req:4032 UID:103 IP:127.0.0.1 one.user.info invoked , -1, false
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: Request #103 USER/#103 USE #0
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  * USER/#103  #0
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  * ZONE/* USE *
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  * MARKETPLACE+MARKETPLACEAPP/* USE *
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  #103 USER/#103 USE+MANAGE #0
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: Permission granted
Fri Oct 23 08:59:36 2026 [Z0][ReM][D]: Req:4032 UID:103 one.user.info result SUCCESS, "<USER><ID>103</ID><G..."
Fri Oct 23 08:59:36 2026 [Z0][ReM][DD]: Number of active connections: 2
Fri Oct 23 08:59:36 2026 [Z0][ReM][D]: Req:6800 UID:103 IP:127.0.0.1 one.group.info invoked , 102, false
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: Request #103 GROUP/#102 USE #0
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  * GROUP/#102  #0
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  * ZONE/* USE *
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  * MARKETPLACE+MARKETPLACEAPP/* USE *
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  @102 GROUP/#102 USE #0
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: Permission granted
Fri Oct 23 08:59:36 2026 [Z0][ReM][D]: Req:6800 UID:103 one.group.info result SUCCESS, "<GROUP><ID>102</ID><..."
Fri Oct 23 08:59:36 2026 [Z0][AuM][D]: _authenticate: -
Fri Oct 23 08:59:36 2026 [Z0][ReM][D]: Req:2896 UID:1 IP:127.0.0.1 one.system.config invoked
Fri Oct 23 08:59:36 2026 [Z0][ReM][D]: Req:2896 UID:1 one.system.config result SUCCESS, "<OPENNEBULA_CONFIGUR..."
Fri Oct 23 08:59:36 2026 [Z0][ReM][DD]: Number of active connections: 1
Fri Oct 23 08:59:36 2026 [Z0][ReM][D]: Req:8416 UID:103 IP:127.0.0.1 one.grouppool.info invoked
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: Reverse search request #103 GROUP/* USE #0
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  * ZONE/* USE *
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  * MARKETPLACE+MARKETPLACEAPP/* USE *
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  @102 NET/* USE #0
Fri Oct 23 08:59:36 2026 [Z0][ACL][DD]: > Rule  @102 DATASTORE/* USE #0
Fri Oct 23 08:59:36 2026 [Z0][ReM][D]: Req:8416 UID:103 one.grouppool.info result SUCCESS, "<GROUP_POOL><GROUP><..."
Fri Oct 23 08:59:37 2026 [Z0][ReM][DD]: Number of active connections: 1
Fri Oct 23 08:59:37 2026 [Z0][ReM][DD]: Number of active connections: 2
Fri Oct 23 08:59:37 2026 [Z0][ReM][D]: Req:8704 UID:103 IP:127.0.0.1 one.system.version invoked
Fri Oct 23 08:59:37 2026 [Z0][ReM][D]: Req:8704 UID:103 one.system.version result SUCCESS, "7.0.1"
Fri Oct 23 08:59:37 2026 [Z0][AuM][D]: _authenticate: -
Fri Oct 23 08:59:37 2026 [Z0][ReM][D]: Req:5296 UID:1 IP:127.0.0.1 one.user.info invoked , 103, true
Fri Oct 23 08:59:37 2026 [Z0][ReM][D]: Req:5296 UID:1 one.user.info result SUCCESS, "<USER><ID>103</ID><G..."
Fri Oct 23 08:59:37 2026 [Z0][ReM][DD]: Number of active connections: 1
Fri Oct 23 08:59:37 2026 [Z0][ReM][D]: Req:3760 UID:1 IP:127.0.0.1 one.vm.info invoked , 8956, true
Fri Oct 23 08:59:37 2026 [Z0][ReM][D]: Req:3760 UID:1 one.vm.info result SUCCESS, "<VM><ID>8956</ID><UI..."
Fri Oct 23 08:59:37 2026 [Z0][ReM][DD]: Number of active connections: 1
Fri Oct 23 08:59:37 2026 [Z0][ReM][D]: Req:4240 UID:103 IP:127.0.0.1 one.vm.info invoked , 8956, false
Fri Oct 23 08:59:37 2026 [Z0][ACL][DD]: Request #103 VM/#8956 USE #0
Fri Oct 23 08:59:37 2026 [Z0][ACL][DD]: > Rule  * VM/#8956  #0
Fri Oct 23 08:59:37 2026 [Z0][ACL][DD]: > Rule  * ZONE/* USE *
Fri Oct 23 08:59:37 2026 [Z0][ACL][DD]: > Rule  * MARKETPLACE+MARKETPLACEAPP/* USE *
Fri Oct 23 08:59:37 2026 [Z0][ACL][DD]: > Rule  @102 HOST/* MANAGE #0
Fri Oct 23 08:59:37 2026 [Z0][ACL][DD]: > Rule  @102 NET/* USE #0
Fri Oct 23 08:59:37 2026 [Z0][ACL][DD]: > Rule  @102 DATASTORE/* USE #0
Fri Oct 23 08:59:37 2026 [Z0][ACL][DD]: > Rule  @102 VM+TEMPLATE/* CREATE *
Fri Oct 23 08:59:37 2026 [Z0][ACL][DD]: No more rules, permission not granted
Fri Oct 23 08:59:37 2026 [Z0][ReM][E]: Req:4240 UID:103 one.vm.info result FAILURE [one.vm.info] User [103] : Not authorized to perform USE VM [8956].

Last two lines:

  • [Z0][ACL][DD]: No more rules, permission not granted
  • [Z0][ReM][E]: Req:4240 UID:103 one.vm.info result FAILURE [one.vm.info] User [103] : Not authorized to perform USE VM [8956].

But permission is granted as you can see in browser tab:

And logs generated when user #234 opens a VNC session of a VM owned by user #103:

Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: Request #234 USER/#234 USE #0
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  * USER/#234  #0
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  * ZONE/* USE *
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  * MARKETPLACE+MARKETPLACEAPP/* USE *
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  #234 USER/#234 USE+MANAGE #0
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: Permission granted
Fri Oct 23 09:00:52 2026 [Z0][ReM][D]: Req:9296 UID:234 one.user.info result SUCCESS, "<USER><ID>234</ID><G..."
Fri Oct 23 09:00:52 2026 [Z0][ReM][DD]: Number of active connections: 1
Fri Oct 23 09:00:52 2026 [Z0][ReM][DD]: Number of active connections: 2
Fri Oct 23 09:00:52 2026 [Z0][ReM][D]: Req:5568 UID:234 IP:127.0.0.1 one.user.info invoked , -1, false
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: Request #234 USER/#234 USE #0
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  * USER/#234  #0
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  * ZONE/* USE *
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  * MARKETPLACE+MARKETPLACEAPP/* USE *
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  #234 USER/#234 USE+MANAGE #0
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: Permission granted
Fri Oct 23 09:00:52 2026 [Z0][ReM][D]: Req:5568 UID:234 one.user.info result SUCCESS, "<USER><ID>234</ID><G..."
Fri Oct 23 09:00:52 2026 [Z0][ReM][DD]: Number of active connections: 2
Fri Oct 23 09:00:52 2026 [Z0][ReM][D]: Req:4432 UID:234 IP:127.0.0.1 one.group.info invoked , 104, false
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: Request #234 GROUP/#104 USE #0
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  * GROUP/#104  #0
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  * ZONE/* USE *
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  * MARKETPLACE+MARKETPLACEAPP/* USE *
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  @104 GROUP/#104 USE #0
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: Permission granted
Fri Oct 23 09:00:52 2026 [Z0][ReM][D]: Req:4432 UID:234 one.group.info result SUCCESS, "<GROUP><ID>104</ID><..."
Fri Oct 23 09:00:52 2026 [Z0][AuM][D]: _authenticate: -
Fri Oct 23 09:00:52 2026 [Z0][ReM][D]: Req:3040 UID:1 IP:127.0.0.1 one.system.config invoked
Fri Oct 23 09:00:52 2026 [Z0][ReM][D]: Req:3040 UID:1 one.system.config result SUCCESS, "<OPENNEBULA_CONFIGUR..."
Fri Oct 23 09:00:52 2026 [Z0][ReM][DD]: Number of active connections: 1
Fri Oct 23 09:00:52 2026 [Z0][ReM][D]: Req:8912 UID:234 IP:127.0.0.1 one.grouppool.info invoked
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: Reverse search request #234 GROUP/* USE #0
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  * ZONE/* USE *
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  * MARKETPLACE+MARKETPLACEAPP/* USE *
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  @104 NET/* USE #0
Fri Oct 23 09:00:52 2026 [Z0][ACL][DD]: > Rule  @104 DATASTORE/* USE #0
Fri Oct 23 09:00:52 2026 [Z0][ReM][D]: Req:8912 UID:234 one.grouppool.info result SUCCESS, "<GROUP_POOL><GROUP><..."
Fri Oct 23 09:00:52 2026 [Z0][ReM][DD]: Number of active connections: 1
Fri Oct 23 09:00:52 2026 [Z0][ReM][D]: Req:7648 UID:234 IP:127.0.0.1 one.system.version invoked
Fri Oct 23 09:00:52 2026 [Z0][ReM][D]: Req:7648 UID:234 one.system.version result SUCCESS, "7.0.1"
Fri Oct 23 09:00:53 2026 [Z0][ReM][DD]: Number of active connections: 1
Fri Oct 23 09:00:53 2026 [Z0][AuM][D]: _authenticate: -
Fri Oct 23 09:00:53 2026 [Z0][ReM][D]: Req:8480 UID:1 IP:127.0.0.1 one.user.info invoked , 234, true
Fri Oct 23 09:00:53 2026 [Z0][ReM][D]: Req:8480 UID:1 one.user.info result SUCCESS, "<USER><ID>234</ID><G..."
Fri Oct 23 09:00:53 2026 [Z0][ReM][DD]: Number of active connections: 1
Fri Oct 23 09:00:53 2026 [Z0][ReM][D]: Req:1120 UID:1 IP:127.0.0.1 one.vm.info invoked , 8931, true
Fri Oct 23 09:00:53 2026 [Z0][ReM][D]: Req:1120 UID:1 one.vm.info result SUCCESS, "<VM><ID>8931</ID><UI..."
Fri Oct 23 09:00:53 2026 [Z0][ReM][DD]: Number of active connections: 1
Fri Oct 23 09:00:53 2026 [Z0][ReM][D]: Req:592 UID:234 IP:127.0.0.1 one.vm.info invoked , 8931, false
Fri Oct 23 09:00:53 2026 [Z0][ACL][DD]: Request #234 VM/#8931 USE #0
Fri Oct 23 09:00:53 2026 [Z0][ACL][DD]: > Rule  * VM/#8931  #0
Fri Oct 23 09:00:53 2026 [Z0][ACL][DD]: > Rule  * ZONE/* USE *
Fri Oct 23 09:00:53 2026 [Z0][ACL][DD]: > Rule  * MARKETPLACE+MARKETPLACEAPP/* USE *
Fri Oct 23 09:00:53 2026 [Z0][ACL][DD]: > Rule  @104 HOST/* MANAGE #0
Fri Oct 23 09:00:53 2026 [Z0][ACL][DD]: > Rule  @104 NET/* USE #0
Fri Oct 23 09:00:53 2026 [Z0][ACL][DD]: > Rule  @104 DATASTORE/* USE #0
Fri Oct 23 09:00:53 2026 [Z0][ACL][DD]: > Rule  @104 VM+TEMPLATE/* CREATE *
Fri Oct 23 09:00:53 2026 [Z0][ACL][DD]: No more rules, permission not granted
Fri Oct 23 09:00:53 2026 [Z0][ReM][E]: Req:592 UID:234 one.vm.info result FAILURE [one.vm.info] User [234] : Not authorized to perform USE VM [8931].

Last two lines:

  • Fri Oct 23 09:00:53 2026 [Z0][ACL][DD]: No more rules, permission not granted
  • Fri Oct 23 09:00:53 2026 [Z0][ReM][E]: Req:592 UID:234 one.vm.info result FAILURE [one.vm.info] User [234] : Not authorized to perform USE VM [8931].

But, again, permission is granted as you can see at browser tab:

In both cases, browers shows “Connection established” in green colour and “not authorized to perform use vm” in red colour and, also, date and time is “#undefined” (top left corner)

I attach all my ACL list (it’s a long list because there are many groups with many users and in each group there are more than one “admin”). Users and groups affected in this post are:

  • users: 103 and 234
  • groups: 102 and 104

It’s a big problem for me what is happening… If somebody could help me, I would be eternally grateful for it.

Thanks in advance.

Hi Daniel,

This is expected behavior. The “Connection established” message does not necessarily mean that access to the VM has been granted. As shown in the logs, OpenNebula denies the request due to insufficient permissions.

By default, users are generally restricted to accessing their own VMs or those permitted by their group permissions.

If you want users to access VMs belonging to other users or groups, please review and adjust your ACL rules accordingly.

Hi @Rostyslav_Yatsyshyn,

but as you could see in my attached screenshots, user #103 could use VM owned by user #234 and vice versa, so user #103 could do whaterver he/she wants with VM owned by user #234. This is the problem, a big problem.

This morning I have reproduced the same behaviour with a OpenNebula 7.0.1 (I can’t upgrade to 7.4 because of we are in the middle of a academic semester) with only two “normal” users. User “Test-1” has been able to open VNC VM session of “Test-2” user. ACL is this:

  ID     USER RES_VHNIUTGDCOZSvRMAPtB   RID OPE_UMAC  ZONE
   0       @1     V--I-T---O-S----P-B     *     ---c     *
   3       @1     -H-----------------     *     -m--    #0
   4       @1     --N----------------     *     u---    #0
   5       @1     -------D-----------     *     u---    #0
 310     @124     -H-----------------     *     -m--    #0
 311     @124     --N----------------     *     u---    #0
 312     @124     -------D-----------     *     u---    #0
 313     @124     V----T-------------     *     ---c    #0
 314     @125     -H-----------------     *     -m--    #0
 315     @125     --N----------------     *     u---    #0
 316     @125     -------D-----------     *     u---    #0
 317     @125     V----T-------------     *     ---c    #0
   1        *     ----------Z--------     *     u---     *
   2        *     --------------MA---     *     u---     *

So it seems the problem is not in my running 7.0.1 with more than 1000 users where ACL list is larger than this. It seems the problem is in the release 7.0.1. Is there a hot fix to solve it and, in february, when the academic semester ends, I will upgrade to 7.4.0?

Thanks.

Hi Daniel,

Looking at your ACL list, I don’t see any rules explicitly granting users access to VMs owned by other users.

However, access can also be granted through the VM’s permissions, independently of ACL rules.

Could you please check whether Test-1 and Test-2 belong to the same group and share the output of onevm show for both VMs, particularly the PERMISSIONS section?

Hi @Rostyslav_Yatsyshyn,

After browsing download repository, I have upgrade to 7.2.0-1 (same FireEdge environment, very important for me because we are in the middle of the academic semester with more than 1000 users/students using our OpenNebula) and problem has been solved. It seems that 7.0.1-1 had some issue that cause this behaviour.

Now, in 7.2.0-1, all works fine.

Thanks!