Confirmed.
Juju snap is trying to access the socket of ssh-agent, which may not be covered by "ssh-keys" plug in snapcraft.
> Aug 08 11:45:29 t14 kernel: audit: type=1400 audit(1691462729.314:741): apparmor="DENIED" operation="connect" class="file" profile="snap.juju.juju" name="/run/user/1000/keyring/ssh" pid=159125 comm="ssh" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=1000
Confirmed.
Juju snap is trying to access the socket of ssh-agent, which may not be covered by "ssh-keys" plug in snapcraft.
> Aug 08 11:45:29 t14 kernel: audit: type=1400 audit(169146272 9.314:741) : apparmor="DENIED" operation="connect" class="file" profile= "snap.juju. juju" name="/ run/user/ 1000/keyring/ ssh" pid=159125 comm="ssh" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=1000