Commit Graph

81 Commits (15d6cf179d3b97b2ab88ece39617bcc4db1a2026)

Author SHA1 Message Date
Lauris BH 08bf443016 Implement git refs API for listing references (branches, tags and other) ()
* Inital routes to git refs api

* Git refs API implementation

* Update swagger

* Fix copyright

* Make swagger happy add basic test

* Fix test

* Fix test again :)
Antoine GIRARD 4c1f1f9646 Remove x/net/context vendor by using std package ()
* Update dep github.com/markbates/goth

* Update dep github.com/blevesearch/bleve

* Update dep golang.org/x/oauth2

* Fix github.com/blevesearch/bleve to c74e08f039e56cef576e4336382b2a2d12d9e026

* Update dep golang.org/x/oauth2
Stanislav 078c404c3b Prometheus endpoint ()
* Add prometheus collector and route

* dep ensure -add github.com/prometheus/client_golang/prometheus

* dep ensure -update github.com/golang/protobuf

* add metrics to reserved usernames

* add comment head in metrics package

* fix style imports

* add metrics settings

* add bearer token check

* mapping metrics configs

* fix lint

* update config cheat sheet

* update conf sample, typo fix
Kim "BKC" Carlbäcker aeb5655c25 Update go-macaron/session to latest mast to fix RCE-bug ()
Mura Li 317ddb7283 Update vendor/github.com/mattn/go-sqlite3 ()
To fix build failure on Windows/386
Mura Li 2ce72d4e00 Update vendor/go-sqlite3 ()
Lauris BH ab5b245182 Disable debug routes unless PPROF is enabled in configuration ()
OvermindDL1 07af31d004 Fix to follow the OpenID Connect Audiences spec ()
Signed-off-by: Gabriel Robertson <overminddl1@gmail.com>
Lauris BH 0c59edaafa Update xorm to latest version and fix correct `user` table referencing in sql ()
Antoine GIRARD 74f9f98f78 Simply remove tidb and deps ()
techknowlogick 9d4c1ddfa1
Dep upgrade mysql lib ()
*  update gopkg file to add sql dep
Magnus Lindvall cdb9478774 LDAP Public SSH Keys synchronization ()
* Add LDAP Key Synchronization feature

Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>

* Add migration: add login source id column for public_key table

* Only update keys if needed

* Add function to only list pubkey synchronized from ldap

* Only list pub ssh keys synchronized from ldap. Do not sort strings as ExistsInSlice does it.

* Only get keys belonging to current login source id

* Set default login source id to 0

* Some minor cleanup. Add integration tests (updete dep testify)
Aleksandr Bulyshchenko ee878e3951 Support secure cookie for csrf-token ()
* dep: Update github.com/go-macaron/csrf

Update github.com/go-macaron/csrf with dep to revision 503617c6b372
to fix issue of csrf-token security.

This update includes following commits:
- Add support for the Cookie HttpOnly flag
- Support secure mode for csrf cookie

Signed-off-by: Aleksandr Bulyshchenko <A.Bulyshchenko@globallogic.com>

* routers: set csrf-token security depending on COOKIE_SECURE

Signed-off-by: Aleksandr Bulyshchenko <A.Bulyshchenko@globallogic.com>
Antoine GIRARD 3f3383dc0a Migrate to dep ()
* Update makefile to use dep

* Migrate to dep

* Fix some deps

* Try to find a better version for golang.org/x/net

* Try to find a better version for golang.org/x/oauth2
Antoine GIRARD 8dca5ad526 Fetch missing file in github.com/davecgh/go-spew/spew ()
Jonas Franz 951309f76a Add support for FIDO U2F ()
* Add support for U2F

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add vendor library
Add missing translations

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Minor improvements

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add U2F support for Firefox, Chrome (Android) by introducing a custom JS library
Add U2F error handling

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add U2F login page to OAuth

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Move U2F user settings to a separate file

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add unit tests for u2f model
Renamed u2f table name

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix problems caused by refactoring

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add U2F documentation

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Remove not needed console.log-s

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add default values to app.ini.sample
Add FIDO U2F to comparison

Signed-off-by: Jonas Franz <info@jonasfranz.software>
Antoine GIRARD 917b9641ec Update to last common bleve ()
Lauris BH e74055878f Update xormstore dependency to fix OAuth2 support for MySQL ()
Lauris BH ff64f188fd Switch back to upstream goth repository and update govendor to latest goth version ()
Lauris BH 5a62eb30df
Store OAuth2 session data in database ()
* Store OAuth2 session data in database

* Rename table to `oauth2_session` and do not skip xormstorage initialization error
PJ Eby fc36567ee1 Update blackfriday dependency per ()
Signed-off-by: PJ Eby <pje@telecommunity.com>
Lauris BH ad33730dca
Update markbates/goth libary to fix OAuth2 support ()
Lauris BH 7b297808ce
Update markbates/goth library ()
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
Ethan Koenig a89592d4ab Reduce repo indexer disk usage ()
Lunny Xiao 97fe773491 fix MSSQL bug on org ()
Antoine GIRARD d2736e268b Remove unused vendor github.com/stretchr/testify/require ()
Ethan Koenig 58a7de2aea Update code.gitea.io/git ()
Ethan Koenig b7ebaf6d20 Various wiki bug fixes ()
* Update macaron

* Various wiki bug fixes
Lunny Xiao 10b54df2b2 Add dingtalk webhook ()
* add dingtalk webhook type

* add vendor

* some fixes

* fix name check

* fix name check & improvment
Lauris BH a6f337046f Update go-ini dependency and remove semicolon hack in translations ()
Ethan Koenig 5866eb2321 Code/repo search ()
Indexed search of repository contents (for default branch only)
Jonas Bröms e86a0bf3fe Add support for extra sendmail arguments ()
* Add support for extra sendmail arguments

* Sendmail args to exec.command should be a list

* Add go-shellquote package

* Use go-shellquote lib for parsing Sendmail args

* Only parse if sendmail is configured
Antoine GIRARD 2112eb8741 Update vendor github.com/lib/pq ()
Lunny Xiao a8717e5e3a Use AfterLoad instead of AfterSet on Structs ()
* use AfterLoad instead of AfterSet on Structs

* fix the comments on AfterLoad

* fix the comments on action AfterLoad
Lunny Xiao 0d80af649a Add init support of orgmode document type on file view and readme ()
* add init support of orgmode document type on file view and readme

* fix imports

* fix imports and readmeExist

* fix imports order

* fix format

* remove unnecessary convert
Ethan Koenig b0f7457d9e Improve issue search ()
* Improve issue indexer

* Fix new issue sqlite bug

* Different test indexer paths for each db

* Add integration indexer paths to make clean
Lunny Xiao 0f9e20b3d7 fix updated update on public key ()
* fix updated update on public key

* update vendor.json

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix root path

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Lunny Xiao 005900baea Use created & updated instead BeforeInsert & BeforeUpdate ()
* use created & updated instead BeforeInsert & BeforeUpdate

* fix vendor checksum

* only show generated SQL when development mode

* remove extra update column updated_unix

* remove trace config
Lunny Xiao 2c6a0fdca8 update latest xorm version to vendor ()
Andrey Nering 2ef33b5338 vendor: update sqlite to fix "database is locked" errors ()
closes 

upstream commit: acfa601240
Antoine GIRARD 274149dd14 Switch to keybase go-crypto (for some elliptic curve key) + test ()
* Switch to keybase go-crypto (for some elliptic curve key) + test

* Use assert.NoError 

and add a little more context to failing test description

* Use assert.(No)Error everywhere 🌈

and assert.Error in place of .Nil/.NotNil
Ethan Koenig cf02cd7ba0 Fix and test for delete user ()
* Fix and test for delete user

* Run updates in batches

* Unit test
Lauris BH 79494047b0 Show commit status icon in commits table ()
* Show commit status icon in commits table

* Add comments

* Fix icons

* Few more places where commit table is displayed

* Change integration test to use goquery for parsing html

* Add integration tests for commit table and status icons

* Fix status to return lates status correctly on all databases

* Rewrote lates commit status selects
Lauris BH 3792867955 Update xorm to latest version ()
* Update xorm to latest version

* Update xorm/builder
Willem van Dreumel 950f2e2074 Additional OAuth2 providers ()
* add google+

* sort signin oauth2 providers based on the name so order is always the same

* update auth tip for google+

* add gitlab provider

* add bitbucket provider (and some go fmt)

* add twitter provider

* add facebook provider

* add dropbox provider

* add openid connect provider incl. new format of tips section in "Add New Source"

* lower the amount of disk storage for each session to prevent issues while building cross platform (and disk overflow)

* imports according to goimport and code style

* make it possible to set custom urls to gitlab and github provider (only these could have a different host)

* split up oauth2 into multiple files

* small typo in comment

* fix indention

* fix indentation

* fix new line before external import

* fix layout of signin part

* update "broken" dependency
Lunny Xiao e3c2963222 remove unused vendor packages ()
Antoine GIRARD eb1075dd4c Check if missing/modified/unused deps in vendor and fix errors ()
* Check if missing deps in vendor

This will catch import from other repos. (maybe by auto-import)

* Remove github.com/smartystreets unused deps

* Remove github.com/boltdb/bolt unused dep

* Fetch github.com/go-xorm/core + sync gopkg.in/ldap.v2/ldap.go

* Auto-install govendor + reinstall github.com/boltdb/bolt needed by vendor/github.com/blevesearch/bleve/index/store/boltdb

* Update go-xorm/xorm to a5cb21 in vendor.json

* Use a custom repo for implementing change to bolt dep.

* Switching bolt to github.com/go-gitea/bolt

* Switching bolt to github.com/go-gitea/bolt (fork version)

* change the drone sign
Lunny Xiao 5acfc7c4bc fix migrate failed and org dashboard failed on MSSQL database ()
Damien Gaignon a78a0266c4 Correct broken unaligned load/store in armv5 ()
Update vendor github.com/boltdb/bolt to take care of the issue .
Sandro Santilli 71d16f69ff Login via OpenID-2.0 ()