Simone Gotti
b7c797bde1
gateway: use dedicated auth context keys type
...
Use auth context keys dedicated type instead of strings and avoid code
duplication by moving shared code under a common package.
2022-02-24 13:41:57 +01:00
Simone Gotti
a1997490e7
Merge pull request #299 from tulliobotti64/16277-filter_user_by_organization
...
gateway: add api to get authenticated user organizations
2022-02-23 17:42:11 +01:00
Tullio
7160194104
gateway: add api to get authenticated user organizations
...
gateway: add api to get authenticated user organizations
gateway: add api to get authenticated user organizations
2022-02-23 15:31:34 +01:00
Simone Gotti
699e4a78b6
Merge pull request #311 from sgotti/use_maintained_go_uuid_package
...
go.mod: replace https://github.com/satori/go.uuid
2022-02-22 10:24:03 +01:00
Simone Gotti
576c09775f
go.mod: replace https://github.com/satori/go.uuid
...
Replace https://github.com/satori/go.uuid with maintained version at
https://github.com/gofrs/uuid
Since the new version uuid.NewV4 returns an error when failing to read
from the random source reader we use uuid.Must to panic on error since
it's considered an unrecoverable error.
In future, if needed, we could handle the error instead of panicking.
2022-02-21 09:43:32 +01:00
Simone Gotti
d0d219cbf1
Merge pull request #305 from alessandro-sorint/gitea
...
ci: update gitea to v1.15.11
2022-02-15 10:06:33 +01:00
alessandro.pinna
aa65b93342
ci: update gitea to v1.15.11
2022-02-08 15:07:42 +01:00
Simone Gotti
60817871dd
Merge pull request #284 from alessandro-sorint/repo-cleaner
...
gitserver: add cleanup of old repos/branches
2022-02-08 14:35:33 +01:00
alessandro.pinna
9251a2a046
enhancement: automatic cleanup of old repos/branches
2022-02-08 11:34:23 +01:00
Simone Gotti
40bc118a1b
Merge pull request #302 from alessandro-sorint/test_on_skipped
...
runconfig: test task generation with on_skipped dependencies
2022-02-01 11:38:52 +01:00
alessandro.pinna
e517e4d243
runconfig: test task generation with on_skipped dependencies
2022-02-01 10:01:54 +01:00
Simone Gotti
31b1547020
Merge pull request #290 from raeyulca/on-skipped-fix
...
runconfig: add case statement for on_skipped
2022-01-19 11:36:38 +01:00
raeyulca
88bef4480d
add missing case statement
2022-01-18 23:14:50 -08:00
Simone Gotti
87874961a9
Merge pull request #279 from alessandro-sorint/master
...
config: fix executor ActiveTasksLimit yaml tag
2021-10-11 11:16:41 +02:00
alessandro.pinna
e600ca078e
config: fix executor ActiveTasksLimit yaml tag
2021-10-11 09:48:25 +02:00
Simone Gotti
96ff1473a3
Merge pull request #276 from sgotti/migrate_to_golang-jwt
...
*: migrate to golang-jwt/jwt
2021-09-10 14:38:53 +02:00
Simone Gotti
64680468fd
*: migrate to golang-jwt/jwt
...
Migrate to the new community maintained version of github.com/dgrijalva/jwt-go
2021-09-10 12:33:59 +02:00
Simone Gotti
97ee680b72
Merge pull request #273 from ygbillet/gitea-fix-list-repo
...
fix: gitea fetch remote repository with pagination
2021-06-07 09:36:42 +02:00
Yves-Gaël Billet
3dbf9a923f
fix: gitea fetch remote repository with pagination
...
Actual implementation doesn't fetch all repository. Gitea API has
pagination.
This patch works wwith gitea pagination for repository listing
Signed-off-by: Yves-Gaël BILLET <yg.billet@gmail.com>
2021-06-04 23:17:41 +02:00
Simone Gotti
8b7596559b
Merge pull request #271 from sgotti/executor_add_initimage_auth_options
...
executor: add init image config authentication options
2021-05-26 11:25:25 +02:00
Simone Gotti
d9d6b995da
executor: add init image config authentication options
...
Add config options to define docker registry authentication for init image
pulling.
2021-05-26 08:57:21 +02:00
Simone Gotti
42a07856cc
Merge pull request #270 from sgotti/executor_use_busybox_stable_as_default_init_image
...
executor: use busybox:stable as default init image
2021-05-25 22:47:16 +02:00
Simone Gotti
afece4d846
executor: use busybox:stable as default init image
...
Use "busybox:stable" as default init image name so it won't be checked/pulled
any time.
2021-05-25 14:03:55 +02:00
Simone Gotti
875e118817
Merge pull request #269 from sgotti/executor_docker_pull_initimage_only_when_needed
...
executor/docker: pull init image only when needed
2021-05-25 14:02:41 +02:00
Simone Gotti
b403fd558a
executor/docker: pull init image only when needed
...
Use the same logic of k8s and pull init image only when has the latest (or
empty) tag or it doesn't exist.
2021-05-25 12:59:16 +02:00
Simone Gotti
0b0d05f2a0
Merge pull request #268 from sgotti/executor_add_config_option_initimage
...
executor: add config option to define the init image
2021-05-25 12:58:33 +02:00
Simone Gotti
21a63af6f5
executor: add config option to define the init image
...
* Add an executor config option to define the init image to use.
2021-05-25 11:46:44 +02:00
Simone Gotti
a7f55f5344
Merge pull request #259 from sgotti/release_v0.6.0
...
Release v0.6.0
2021-03-24 13:03:42 +01:00
Simone Gotti
6da55293e4
Release v0.6.0
2021-03-19 16:35:05 +01:00
Simone Gotti
43d73ec064
Merge pull request #261 from sgotti/add_listenandservetls
...
*: call ListenAndServeTLS when tls is enabled in config
2021-03-19 12:25:07 +01:00
Simone Gotti
0544586ade
*: call ListenAndServeTLS when tls is enabled in config
2021-03-19 10:53:16 +01:00
Simone Gotti
291ed3d440
Merge pull request #257 from sgotti/update_to_go_1.16
...
*: update to go 1.16
2021-03-16 13:44:43 +01:00
Simone Gotti
d3a5fbfe5b
*: update to go 1.16
2021-03-15 15:17:29 +01:00
Simone Gotti
69a5e0fe9b
Merge pull request #258 from sgotti/gitserver_fix_fetchfile_errors
...
gitserver: fix fetchfile error handling
2021-03-15 15:17:13 +01:00
Simone Gotti
f598fd0f4b
gitserver: fix fetchfile error handling
...
since the git command output is redirected to the http response body, the golang
http server automatically adds a 200 status before sending the body. If the git
command fails we cannot return an http error anymore but must close the
connection to let the client know that the request failed.
2021-03-15 13:19:13 +01:00
Simone Gotti
097caaf871
Merge pull request #253 from camandel/remove_waitapprove_if_stopped
...
Remove WaitingApproval for stopped tasks
2021-02-08 10:27:49 +01:00
Carlo Mandelli
45eb092871
Remove WaitingApproval for stopped tasks
2021-02-03 19:45:27 +01:00
Simone Gotti
c3c18e0d2c
Merge pull request #250 from sgotti/fix_example_config_gitserverURL
...
example: fix gitserverURL in example config
2021-01-14 09:13:47 +01:00
Simone Gotti
684216c42e
example: fix gitserverURL in example config
...
The git server needs to be accessed on localhost from the gateway and not from
the host's docker bridge address.
2021-01-13 16:15:51 +01:00
Simone Gotti
e0756d6e61
Merge pull request #249 from ftsell/master
...
add content-type header for /config.js
2020-11-04 00:09:31 +01:00
Finn-Thorben Sell
8cb8973846
add content-type header for /config.js
2020-10-30 19:41:52 +01:00
Simone Gotti
5b9bc38303
Merge pull request #241 from 6543-forks/vendor-gitea-sdk
...
vendor: update gitea sdk v0.11.0 -> 0.12.0
2020-06-10 18:20:13 +02:00
6543
7ffe4fe3be
migrate2
2020-05-22 12:35:05 +02:00
6543
c6f09610f1
migrate
2020-05-22 12:07:53 +02:00
6543
cc52d49d6b
update code.gitea.io/sdk/gitea v0.11.0 -> v0.12.0
2020-05-22 11:49:30 +02:00
Simone Gotti
fa35c77f29
Merge pull request #217 from sgotti/update_to_go_1.14
...
*: update to go 1.14
2020-03-20 22:58:54 +01:00
Simone Gotti
110a0cb5a0
*: update to go 1.14
...
* Update to go 1.14
* Update golangci-lint to v1.23.6 that works with go 1.14
2020-03-20 10:07:46 +01:00
Simone Gotti
486c4b9bcd
Merge pull request #239 from sgotti/config_check_max_config_size
...
config: check max config size
2020-03-20 10:07:23 +01:00
Simone Gotti
8a156b936e
config: check max config size
...
limit config size to 1MiB.
2020-03-17 11:28:25 +01:00
Simone Gotti
23dfbb82e1
Merge pull request #232 from sgotti/starlark_config
...
config: add starlark config support
2020-03-11 10:33:36 +01:00