Commit Graph

296 Commits

Author SHA1 Message Date
Denis Gukov
d3923f18b3 feat: admin can all 2023-09-17 16:15:44 +02:00
Denis Gukov
b31033323a feat: restrict manager permissions 2023-09-17 15:17:15 +02:00
Denis Gukov
0b3394c29d refactor(config): remove type DbDriver 2023-09-14 19:55:09 +02:00
Denis Gukov
ff2da94ebf Merge branch 'develop' into config-validation 2023-09-14 13:25:24 +02:00
Denis Gukov
aef7cbca04 feat: add status starting 2023-09-12 20:58:44 +02:00
Denis Gukov
6fa3e50198
Runners (#1477)
* feat(runners): add migartion

* feat(runners): sql implementation
2023-09-11 01:02:10 +02:00
Denis Gukov
a8921e6e82
Runners (#1458)
* feat(runners): update task status

* feat(config): add remote runner flag

* feat(runners): kill remote job

* feat(runners): update state
2023-09-10 23:18:25 +02:00
Denis Gukov
1875e82af0 fix(config): merge conflict 2023-09-09 17:10:29 +02:00
Denis Gukov
4a2ff1477b fix(config): merge conflict 2023-09-09 17:07:10 +02:00
Denis Gukov
f981f14d16
Vault cli (#1463)
* feat(be): add cli command vault rekey

* feat(vault): use tx

* feat(vault): docs

* fix(vault): rekey flag
2023-09-09 14:41:41 +02:00
Denis Gukov
d1b7ad021e
Runners (#1444)
* feat(runners): add register endpoint

* feat(runners): add remote runner

* refactor(runners): move functionality TaskRunner -> AnsibleJobRunner

* fix(runners): init job

* chore(runners): remote unused field

* feat(runners): use external logger from AnsibleJobRunner

* refactor(runners): remove status field

* refactor(runners): remove mutation from job

* feat(runners): pass username and verison to task

* test(runners): fix tests

* fix(runners): params for Run

* feat(runners): implement runner selection

* feat(runners): fill required fields

* fix(runners): session block

* feat(runners): kill process

* refactor(runners): rename fields to public

* feat(runners): remote runner functionallity

* refactor(runners): remove unused class

* fix(runners): send json

* feat(runners): runner registration

* feat(runners): logging

* feat(runners): server <-> running communication works

* feat(runners): pass creds to runenr
2023-08-29 00:51:04 +02:00
Denis Gukov
37e7c4aca1 fix(be): do not panic in boltdb connection 2023-08-28 10:53:49 +02:00
Denis Gukov
b5a99eba7f
Runners (#1439)
* refactor(runners): extract jobs to separate entity
2023-08-27 18:02:51 +02:00
Denis Gukov
690f174168 fix(be): currect manager permissions 2023-08-26 21:13:48 +02:00
Denis Gukov
b522169832 test: check role permissions 2023-08-26 18:48:16 +02:00
AnsibleGuy
421e862786
feat: added basic config validation, loading all settings from environment-variables, dynamic applying of default-values to settings, tests for config-loading and -validation 2023-08-05 15:56:39 +02:00
Denis Gukov
517ad4dc97 feat(ui): add roles to UI 2023-07-22 22:48:10 +02:00
Denis Gukov
0b81623b09 fix(migrations): manager is default role 2023-07-22 22:47:12 +02:00
Denis Gukov
bfa9a3c00b fix(be): migration for bolt 2023-07-09 11:35:52 +02:00
Denis Gukov
93e42b7023 fix(roles): validate user role in project when add or update 2023-07-09 10:24:03 +02:00
Denis Gukov
87d983556f refactor(be): create middleware to check permissions 2023-07-08 23:35:39 +02:00
Denis Gukov
9c9c005955 refactor(be): add struct UserWithProjectRole 2023-07-08 12:41:57 +02:00
Denis Gukov
c1049c8c4c fix(be): column admin -> role in sql request 2023-07-08 11:39:51 +02:00
Denis Gukov
61e43b0da2 fix(be): specify varchat max length 2023-07-08 00:06:43 +02:00
Denis Gukov
07b908f1ef fix(be): update sql query 2023-07-07 23:55:41 +02:00
Denis Gukov
026e5a910b fix(be): sql migration issue 2023-07-07 23:24:56 +02:00
Denis Gukov
49a06d540f feat(be): add migration project__user.admin -> project_user.role 2023-07-07 23:16:43 +02:00
Denis Gukov
23841a240f feat(be): add role based checks 2023-07-07 22:15:16 +02:00
Bjarne Roß
d589598f90
Update Template.go 2023-06-13 12:08:29 +02:00
Bjarne Roß
763bd6e562
Update Template.go 2023-06-13 11:53:37 +02:00
Bjarne Roß
fa9c43decf
Oops 2023-06-13 11:38:00 +02:00
Bjarne Roß
c089ee239a
Update Template.go 2023-06-13 11:35:24 +02:00
Denis Gukov
668c81a991 fix(be): use DbConfig getter method instead of direct access to fields 2023-01-28 03:25:25 +04:00
Denis Gukov
0d87d0b736 ci: fix dredd dockerfile 2022-11-19 15:58:46 +05:00
Denis Gukov
07c6860ccb feat(be): support session connection for boltdb 2022-11-19 03:23:30 +05:00
Denis Gukov
1139e35ce1 fix(be): return empty array instead of nil for BoltDB 2022-11-09 23:00:35 +05:00
Denis Gukov
cbd441b6fd fix(be): ignore not found error when deleting task output bucket 2022-11-09 22:50:11 +05:00
Denis Gukov
b2f5d42a6f test: remove date/time pattern from open api 2022-11-09 22:04:35 +05:00
Denis Gukov
579f978ffc feat(be): do not keep connection by BoltDB 2022-11-09 21:30:35 +05:00
Denis Gukov
cd134b04a6 fix(be): token deletion for boltdb 2022-11-09 14:02:48 +05:00
Denis Gukov
1e06957028 feat: ability to delete api token 2022-11-09 13:10:42 +05:00
Denis Gukov
adb57bf524 chore: error message 2022-11-09 12:37:27 +05:00
Denis Gukov
4559b52c4a fix(be): validate user data 2022-10-30 22:18:23 +05:00
Denis Gukov
c66c9482b1 feat(be): remove PAT key type 2022-10-29 15:18:42 +05:00
Denis Gukov
68373c2b33 fix(be): add migariton number 2022-10-28 19:59:50 +05:00
anarchistcat
b27611e565 Diff mode test 2022-10-28 05:05:13 +02:00
Denis Gukov
54ab92b6af fix(be): empty event name for deleted task 2022-10-22 02:36:05 +05:00
Denis Gukov
f70572b484 fix(be): BoltDB issue with deleted user https://github.com/ansible-semaphore/semaphore/issues/1055 2022-10-22 01:56:32 +05:00
Denis Gukov
aa46a392d7 fix(be): adding user to project team for BoltDB 2022-10-22 01:47:43 +05:00
Denis Gukov
fd259a4af4 fix(be): empty env field in environment, https://github.com/ansible-semaphore/semaphore/issues/980 2022-06-30 11:04:51 +05:00