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

Allow access to repositories for active accounts without login permission #3957

Closed
2 of 7 tasks
lenidh opened this issue May 12, 2018 · 7 comments
Closed
2 of 7 tasks

Comments

@lenidh
Copy link

lenidh commented May 12, 2018

  • Gitea version (or commit ref): 1.4.1
  • Git version: 2.11
  • Operating system: Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

The current behaviour was introduced with PR #3887 and #3889. Before it worked as expected.

Expected behaviour

A user account with "Account activated" and "Login disabled" both enabled should not be able to login into the web interface but may access a git repository to which access was granted.

Actual behaviour

A user account with "Account activated" and "Login disabled" both enabled can neither access the web interface nor a git repository.

Screenshots

Account options:
gitea-account-settings
Output when accessing a repository:
gitea-access-error

@techknowlogick
Copy link
Member

I think you would be able to use read-write deploy keys for this use-case.

@lunny
Copy link
Member

lunny commented May 13, 2018

I would like the current behaviour.

@lunny
Copy link
Member

lunny commented May 13, 2018

For non-actived user, he's profile cannot be view by others and his repository will not be visited too.
For login disabled user, he's profile and repository could be visited but he cannot login and cannot change his settings and repositories and cannot clone his private repositories.

@JacquesOfAllTrades
Copy link

Since this issue is still open, I'd like to go on record by agreeing with @lunny. I would interpret "login disabled" to mean that the user's ability to authenticate has been revoked. And if the user isn't allowed to authenticate, they're in effect anonymous, meaning they can access only resources that are public.

Furthermore, it would be a major security hazard if a Gitea update suddenly granted new privileges to disabled users.

The Deploy Key approach seems reasonable. Or simply strip the user in question of all privileges except access to the necessary repository(ies).

@zeripath
Copy link
Contributor

Of note, it's possible for site Admin users to Sudo as these accounts under the API.

@stale
Copy link

stale bot commented Mar 24, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Mar 24, 2019
@lunny
Copy link
Member

lunny commented Mar 24, 2019

I think this could be closed now. Please feel free to reopen it.

@lunny lunny closed this as completed Mar 24, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants