Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug when unassign-group on user #329

Open
mordash opened this issue Mar 2, 2022 · 12 comments · Fixed by BSONetwork/sshportal#1 · May be fixed by #468 or #470
Open

Bug when unassign-group on user #329

mordash opened this issue Mar 2, 2022 · 12 comments · Fixed by BSONetwork/sshportal#1 · May be fixed by #468 or #470

Comments

@mordash
Copy link

mordash commented Mar 2, 2022

Hi,
I have a bug when i try to remove group on my user sshportal.

Actual Result / Problem

`user update --unassign-group my_group my_user

error: unsupported relations: Roles`

Expected Result / Suggestion

I expect that group was removed

Some context

docker version of sshportal
image :
moul/sshportal latest 231c35fcc3c2 3 weeks ago 24.8MB

OS Type: linux
OS Architecture: amd64
Go routines: 12
Go version (build): go1.17.6
DB Driver: sqlite3
DB Conn: /var/lib/sshportal/sshportal.db
...

Best regards.

@Helyk
Copy link

Helyk commented Mar 6, 2022

I am having a similar, or maybe the same issue when configuring hop for a host.

If I create a new host and set an existing host as a hop for it (both during creation and afterwards with update), I get an error "error: unsupported relations: HopID" whenever I:

  1. try to connect to the new host that has a hop;
  2. try to unset its hop;
  3. use host ls.

I have built sshportal 1.19.3 using go 1.17.1 on commit 46970b6.

@Helyk
Copy link

Helyk commented Mar 16, 2022

Being unable to unassing groups and set hops really hinders the intended functionality. I hope this gets fixed soon.

But until then, could you please point out a commit which I could build and where these problems weren't present yet?

@fpastore-aws
Copy link

+1, any possible workaround?

@jle64
Copy link
Contributor

jle64 commented Apr 12, 2022

The problem happens since 6068e6e, 01e4dcb is the last version on master not to have it.

@cripts
Copy link

cripts commented May 10, 2022

this problem with the last version is not working, the problem persist.

config> user update --unassign-group mygroup myuser
error: unsupported relations: Roles
config>

debug mode (server): false
Demo mode: false
DB Driver: sqlite3
DB Conn: ./sshportal.db
Bind Address: :2222
System Time: 2022-05-10T10:43:59.097160911+02:00
OS Type: linux
OS Architecture: amd64
Go routines: 9
Go version (build): go1.18.1
Uptime: 5m38.672795202s
Version: n/a
GIT SHA: n/a
GIT Tag: n/a

any possible workaround?

thanks

@bklier-mpl
Copy link

Same problem here, would be great if that could be fixed 'cause I really like that software :-)

@Helyk
Copy link

Helyk commented Nov 15, 2022

This particular problem is fixed in the following fork:
https://github.com/vdombrovski/sshportal

UPD: here is a particular commit with the fix: db67f23

@strazto
Copy link

strazto commented May 17, 2023

I have the same issue as @Helyk

error: unsupported relations: HopID

Although @Helyk reports a fix in #329 (comment)

This particular problem is fixed in the following fork: vdombrovski/sshportal

UPD: here is a particular commit with the fix: db67f23

It's not that obvious whether that fix applies to the "HopID" error.

Personally, I think that sshportal is abandoned enough that it's worth migrating to something that's maintained, and more usable.
I've just started using warpgate, https://github.com/warp-tech/warpgate and I've found it's a lot easier to bootstrap, configure, administrate and use in general.

libvoid pushed a commit to alterway/sshportal that referenced this issue May 31, 2023
libvoid pushed a commit to alterway/sshportal that referenced this issue Jun 5, 2023
libvoid pushed a commit to alterway/sshportal that referenced this issue Jun 5, 2023
libvoid pushed a commit to alterway/sshportal that referenced this issue Jun 6, 2023
libvoid pushed a commit to alterway/sshportal that referenced this issue Jun 7, 2023
@vdombrovski
Copy link

Hello,

I can confirm that I'm having an issue with HopId even with my fix. I'll try to find a solution in the meantime, also I believe there are some fixes that could benefit the project, I'll push some PRs.

vdombrovski added a commit to vdombrovski/sshportal that referenced this issue Jul 13, 2023
vdombrovski added a commit to vdombrovski/sshportal that referenced this issue Jul 13, 2023
libvoid pushed a commit to alterway/sshportal that referenced this issue Jul 13, 2023
libvoid pushed a commit to alterway/sshportal that referenced this issue Jul 13, 2023
libvoid pushed a commit to alterway/sshportal that referenced this issue Jul 17, 2023
libvoid pushed a commit to alterway/sshportal that referenced this issue Jul 17, 2023
libvoid pushed a commit to alterway/sshportal that referenced this issue Jul 17, 2023
libvoid pushed a commit to alterway/sshportal that referenced this issue Jul 17, 2023
libvoid pushed a commit to alterway/sshportal that referenced this issue Jul 17, 2023
libvoid pushed a commit to alterway/sshportal that referenced this issue Jul 17, 2023
libvoid pushed a commit to alterway/sshportal that referenced this issue Jul 17, 2023
fix "unsupported relations: Roles" error when using `unassign-group` on a user

closes moul#329
@Manouchehri
Copy link

Likewise, also having this issue.

@vdombrovski Did you ever get your fix to work?

@vdombrovski
Copy link

@Manouchehri yes I did, you can either cherry-pick from my branch, but I'll also make a PR next week.

@Manouchehri
Copy link

Ah thanks, got 1f3e507 working; it turns out I was doing something wrong with my config, your fix was good the entire time. =D

easybe pushed a commit to husqvarnagroup/sshportal that referenced this issue Oct 6, 2023
Fixes moul#329

(cherry picked from commit 1f3e507)
easybe pushed a commit to husqvarnagroup/sshportal that referenced this issue Oct 7, 2023
Fixes moul#329

(cherry picked from commit 1f3e507)
easybe pushed a commit to husqvarnagroup/sshportal that referenced this issue Oct 20, 2023
Fixes moul#329

(cherry picked from commit 1f3e507)
easybe pushed a commit to husqvarnagroup/sshportal that referenced this issue Oct 20, 2023
Fixes moul#329

(cherry picked from commit 1f3e507)
easybe pushed a commit to husqvarnagroup/sshportal that referenced this issue Oct 21, 2023
Fixes moul#329

(cherry picked from commit 1f3e507)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
9 participants