-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Feaure requests: unattended installation, user creation, app creation, sso, ldap integration #9210
Labels
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Comments
It's interesting. We need some new commands. |
This was referenced Feb 20, 2020
+1 for this feature, dockerised setup really could use default admin account. |
In 1.14.x this is a lot more straightforward, see https://discourse.gitea.io/t/unattended-gitea-installation-from-the-cli/3373/14 for details. |
@techknowlogick this works, thanks for the hint. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
Here is my proposal to solve:
https://github.com/go-gitea/gitea/blob/master/docker/root/etc/s6/gitea/setup
To do this, its needed to integrate new gitea commands:
gitea migration --test
-> test if migration is done ( no need to use postgresql-client, mariadb-client, etc to check db tables are populated/migrated )gitea admin get-user
-> get gitea user ( name, password, email )gitea admin edit-user
-> edit gitea user ( password, email )gitea admin add-app
-> add oauth application ( id secret )gitea admin edit-app
-> edit oauth application ( secret )P.S. modification commands are not necesary, its just for fully idempotent initialization of new instance. ( new gitea instance with old gitea db ). Even
gitea admin auth update-oauth
andgitea admin auth update-ldap
exists...Environment variables:
GITEA_USERNAME
GITEA_PASSWORD
GITEA_EMAIL
GITEA_OAUTH2_PROVIDER_ID
GITEA_OAUTH2_PROVIDER_SECRET
Something similar should be used also for oauth and ldap authentication.
There are already commands for it:
gitea admin auth add-oauth
gitea admin auth add-ldap
Would be nice to have fully integrated gitea at deploy time.
Any other ideas @lunny ?
Thanks
The text was updated successfully, but these errors were encountered: