Skip to content

Commit f083bda

Browse files
committed
Merge branch 'main' into pg-query-fail-1
2 parents 7e255ca + 0c68bc4 commit f083bda

File tree

321 files changed

+13989
-2845
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

321 files changed

+13989
-2845
lines changed

CHANGELOG/release-notes-v1.2.0.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## v1.2.0
2+
3+
4+
5+
## Bugs
6+
- fix: Application listing panic handling (#6199)
7+
- fix: Copy image plugin panic handling (#6220)
8+
- fix: Remove gaps between image scanning V1 & V2 (#6213)
9+
- fix: Select Query errors in Postgres Pod Logs (#6238)
10+
- fix: Graceful shutdown handling and logs flush (#6239)
11+
- fix: Remove unused variable causing double register in prometheus (#6279)
12+
## Enhancements
13+
- feat: Ignore workflow cache config (#6218)
14+
- feat: Build infra support (#6151)
15+
- feat: Helm type pipeline app status (#6262)
16+
- feat: Added labels to manual sync job (#6269)
17+
## Others
18+
- chore: Changes in CD trigger plugin condition v1.3.0 (#6233)
19+
- misc: GetDockerRegistryIdForCiPipeline (#6231)
20+
- chore: Merging user service with connection manager (#6225)
21+
- chore: Argocd repository secret creation service refactoring (#6229)
22+
- chore: Added sql migraiton for searchable key (#6252)
23+
- misc: Adds the required env variables to set up devtron (#6254)
24+
- misc: Added schme json for cronjobs (#6260)
25+
- misc: Error handling when template is empty in ExtractVariables (#6261)
26+
- misc: Nil check in envOverride.chart (#6263)
27+
- misc: PG enable metrics (#6243)
28+
- chore: Patch infra merge (#6274)
29+
- chore: Argo common client (#6266)
30+
- chore: Optimised Dockerfile by removing extra layers (#6293)
31+
- chore: Updated ApplistingRestHandler oss/ent function (#6307)
32+
- chore: Added env generator changes (#6302)
33+
- chore: Deployment config methods add (#6297)
34+
- misc: Deployment, reference and statefulset updated versions (#6284)
35+
- chore: Scoped var oss/ent changes (#6319)

CHANGELOG/release-notes-v1.2.1.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## v1.2.1
2+
3+
## Bugs
4+
- fix: Auto cd trigger even if pre-cd fails (#6338)
5+
6+

CHANGELOG/release-notes-v1.2.2.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## v1.2.2
2+
3+
## Bugs
4+
- fix: Failure to trigger cd set on auto after pre-cd is success which is also on auto which got triggered after ci (#6361)
5+
6+

CHANGELOG/release-notes-v1.3.0.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## v1.3.0
2+
3+
## Bugs
4+
- fix: panic fixes (#6411)
5+
- fix: auto pre-cd not getting triggered (if cd is manual) after webhook ci event is captured (#6407)
6+
- fix: Base update (#6405)
7+
- fix: devtron apps deployed via helm showing in helm apps list (#6397)
8+
- fix: when a helm app is managed by argocd then skip argo app update when same name ext helm app is installed (#6389)
9+
- fix: upgraded to go-git/v5 v5.13.0 (#6388)
10+
- fix: fix for ci cd workflow fake success status and multiple post/pre cd success notifications (#6370)
11+
- fix: fix for while cloning app or workflow when external secret is present in any pipeline then that pipeline is not cloned (#6368)
12+
- fix: fix for while cloning app or workflow when external secret is present in any pipeline then that pipeline is not cloned (#6366)
13+
- fix: buildx driver opt using k8s driver even if not enabled (#6349)
14+
- fix: Auto trigger even if pre-cd fails (#6338)
15+
- fix: role group listing fix (#6343)
16+
- fix: sql injection fixes (#6334)
17+
- fix: role group k8s permissions duplication (#6336)
18+
## Enhancements
19+
- feat: hibernate devtron app (#6356)
20+
- feat: separate build worker status timeline (#6320)
21+
- feat: send notification with chosen config (#6331)
22+
- feat: sql script changes for operation audit (#6342)
23+
## Documentation
24+
- doc: updated devtron user list in users.md (#6363)
25+
## Others
26+
- misc: pipeline listing in app Group (#6410)
27+
- misc: Notif back com (#6398)
28+
- sync: Main sync develop (#6396)
29+
- sync: vendor update on release 29 (#6395)
30+
- sync: Release candidate v0.29.0 (#6394)
31+
- sync: Main sync develop (#6375)
32+
- misc: common-lib change (#6347)
33+
- sync: Release candidate v0.28.0 (#6340)
34+
- misc: Fix typo: Cronjob → CronJob (#6335)
35+
- sync: Main sync develop (#6358)
36+
37+

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ADD ./vendor/github.com/Microsoft/ /go/src/github.com/devtron-labs/devtron/vendo
1414
RUN GOOS=linux make build
1515

1616
# uncomment this post build arg
17-
FROM ubuntu:22.04@sha256:1b8d8ff4777f36f19bfe73ee4df61e3a0b789caeff29caa019539ec7c9a57f95 as devtron-all
17+
FROM ubuntu:24.04@sha256:72297848456d5d37d1262630108ab308d3e9ec7ed1c3286a32fe09856619a782 as devtron-all
1818

1919
RUN apt update && \
2020
apt install ca-certificates git curl -y && \
@@ -43,4 +43,4 @@ RUN chmod +x /git-ask-pass.sh
4343

4444
USER devtron
4545

46-
CMD ["./devtron"]
46+
CMD ["./devtron"]

DockerfileEA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ADD ./vendor/github.com/Microsoft/ /go/src/github.com/devtron-labs/devtron/vendo
1313

1414
RUN GOOS=linux make build-all
1515

16-
FROM ubuntu:22.04@sha256:1b8d8ff4777f36f19bfe73ee4df61e3a0b789caeff29caa019539ec7c9a57f95 as devtron-ea
16+
FROM ubuntu:24.04@sha256:72297848456d5d37d1262630108ab308d3e9ec7ed1c3286a32fe09856619a782 as devtron-ea
1717

1818
RUN apt update && \
1919
apt install ca-certificates curl -y && \

USERS.md

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,34 @@ As the community grows, we want to keep track of the users and organizations usi
55
Currently, Devtron is being used by the following organizations:
66

77
1. [73strings](https://www.73strings.com/)
8-
2. [Ather Energy](https://www.atherenergy.com/)
9-
3. [BharatPe](https://bharatpe.com/)
10-
4. [Birdeye](https://birdeye.com/)
11-
5. [Bluecopa](https://www.bluecopa.com/)
12-
6. [Chitale Bandhu](https://www.chitalebandhu.in/)
13-
7. [Centricity](https://centricity.co.in/)
14-
8. [Delhivery](https://www.delhivery.com/)
15-
9. [KHELGroup](https://thekhelgroup.com/)
16-
10. [Lemnisk](https://www.lemnisk.co/)
17-
11. [OTPLess](https://otpless.com/)
18-
12. [Spinny](https://www.spinny.com/)
19-
13. [Tata 1Mg](https://www.1mg.com/)
20-
14. [TravClan](https://www.travclan.com/)
21-
15. [Xoxoday](https://www.xoxoday.com/)
22-
23-
24-
8+
2. [Apica](https://www.apica.io/)
9+
3. [Ather Energy](https://www.atherenergy.com/)
10+
4. [BharatPe](https://bharatpe.com/)
11+
5. [Birdeye](https://birdeye.com/)
12+
6. [Bluecopa](https://www.bluecopa.com/)
13+
7. [Careers 360](https://www.careers360.com/)
14+
8. [Chitale Bandhu](https://www.chitalebandhu.in/)
15+
9. [Comcast](https://corporate.comcast.com/)
16+
10. [Delhivery](https://www.delhivery.com/)
17+
11. [Empuls](https://www.empuls.io/)
18+
12. [EMT Madrid](https://www.emtmadrid.es/Home)
19+
13. [Encircle Marketing](https://encircle-marketing.com/)
20+
14. [FTL Express](https://www.ftl-express.com/)
21+
15. [Genwise](https://www.genwise.club/)
22+
16. [HCL Tech](https://www.hcltech.com/)
23+
17. [Indiamart](https://www.indiamart.com/)
24+
18. [IPCortex](https://ipcortex.co.uk/)
25+
19. [Jivi.ai](https://www.jivi.ai/)
26+
20. [KHELGroup](https://thekhelgroup.com/)
27+
21. [Kenny LLC](https://kennyl.dev/)
28+
22. [Lemnisk](https://www.lemnisk.co/)
29+
23. [MobileID](https://www.mobileid.ch/en)
30+
24. [OTPLess](https://otpless.com/)
31+
25. [University of Albany](https://www.albany.edu/)
32+
26. [Shiprocket](https://www.shiprocket.in/)
33+
27. [Spinny](https://www.spinny.com/)
34+
28. [Tata 1Mg](https://www.1mg.com/)
35+
29. [Texas Tech University](https://www.ttu.edu/)
36+
30. [TravClan](https://www.travclan.com/)
37+
31. [Xoxoday](https://www.xoxoday.com/)
38+
32. [Zupee](https://www.zupee.com/)

Wire.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ import (
125125
"github.com/devtron-labs/devtron/pkg/build"
126126
"github.com/devtron-labs/devtron/pkg/build/artifacts/imageTagging"
127127
pipeline6 "github.com/devtron-labs/devtron/pkg/build/pipeline"
128-
"github.com/devtron-labs/devtron/pkg/bulkAction"
128+
"github.com/devtron-labs/devtron/pkg/bulkAction/service"
129129
"github.com/devtron-labs/devtron/pkg/chart"
130130
"github.com/devtron-labs/devtron/pkg/chart/gitOpsConfig"
131131
chartRepoRepository "github.com/devtron-labs/devtron/pkg/chartRepo/repository"
@@ -155,6 +155,8 @@ import (
155155
repository3 "github.com/devtron-labs/devtron/pkg/pipeline/history/repository"
156156
repository5 "github.com/devtron-labs/devtron/pkg/pipeline/repository"
157157
"github.com/devtron-labs/devtron/pkg/pipeline/types"
158+
"github.com/devtron-labs/devtron/pkg/pipeline/workflowStatus"
159+
repository6 "github.com/devtron-labs/devtron/pkg/pipeline/workflowStatus/repository"
158160
"github.com/devtron-labs/devtron/pkg/plugin"
159161
"github.com/devtron-labs/devtron/pkg/policyGovernance"
160162
resourceGroup2 "github.com/devtron-labs/devtron/pkg/resourceGroup"
@@ -355,8 +357,8 @@ func InitializeApp() (*App, error) {
355357
wire.Bind(new(gitOpsConfig.DevtronAppGitOpConfigService), new(*gitOpsConfig.DevtronAppGitOpConfigServiceImpl)),
356358
chart.NewChartServiceImpl,
357359
wire.Bind(new(chart.ChartService), new(*chart.ChartServiceImpl)),
358-
bulkAction.NewBulkUpdateServiceImpl,
359-
wire.Bind(new(bulkAction.BulkUpdateService), new(*bulkAction.BulkUpdateServiceImpl)),
360+
service.NewBulkUpdateServiceImpl,
361+
wire.Bind(new(service.BulkUpdateService), new(*service.BulkUpdateServiceImpl)),
360362

361363
repository.NewImageTagRepository,
362364
wire.Bind(new(repository.ImageTagRepository), new(*repository.ImageTagRepositoryImpl)),
@@ -471,6 +473,11 @@ func InitializeApp() (*App, error) {
471473
pipeline.NewCiServiceImpl,
472474
wire.Bind(new(pipeline.CiService), new(*pipeline.CiServiceImpl)),
473475

476+
workflowStatus.NewWorkflowStageFlowStatusServiceImpl,
477+
wire.Bind(new(workflowStatus.WorkFlowStageStatusService), new(*workflowStatus.WorkFlowStageStatusServiceImpl)),
478+
repository6.NewWorkflowStageRepositoryImpl,
479+
wire.Bind(new(repository6.WorkflowStageRepository), new(*repository6.WorkflowStageRepositoryImpl)),
480+
474481
pipelineConfig.NewCiWorkflowRepositoryImpl,
475482
wire.Bind(new(pipelineConfig.CiWorkflowRepository), new(*pipelineConfig.CiWorkflowRepositoryImpl)),
476483

api/bean/UserRequest.go

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package bean
1919
import (
2020
"encoding/json"
2121
"github.com/devtron-labs/devtron/pkg/auth/user/bean"
22+
"github.com/devtron-labs/devtron/pkg/sql"
2223
"time"
2324
)
2425

@@ -168,3 +169,40 @@ type BulkDeleteRequest struct {
168169
type UserRoleGroup struct {
169170
RoleGroup *RoleGroup `json:"roleGroup"`
170171
}
172+
173+
type GroupPermissionsAuditDto struct {
174+
RoleGroupInfo *RoleGroup `json:"roleGroupInfo,omitempty"`
175+
EntityAudit sql.AuditLog `json:"entityAudit,omitempty"`
176+
}
177+
178+
func NewGroupPermissionsAuditDto() *GroupPermissionsAuditDto {
179+
return &GroupPermissionsAuditDto{}
180+
}
181+
182+
func (pa *GroupPermissionsAuditDto) WithRoleGroupInfo(roleGroupInfo *RoleGroup) *GroupPermissionsAuditDto {
183+
pa.RoleGroupInfo = roleGroupInfo
184+
return pa
185+
}
186+
func (pa *GroupPermissionsAuditDto) WithEntityAudit(entityAudit sql.AuditLog) *GroupPermissionsAuditDto {
187+
pa.EntityAudit = entityAudit
188+
return pa
189+
}
190+
191+
type UserPermissionsAuditDto struct {
192+
UserInfo *UserInfo `json:"userInfo,omitempty"`
193+
EntityAudit sql.AuditLog `json:"entityAudit,omitempty"`
194+
}
195+
196+
func NewUserPermissionsAuditDto() *UserPermissionsAuditDto {
197+
return &UserPermissionsAuditDto{}
198+
}
199+
200+
func (pa *UserPermissionsAuditDto) WithUserInfo(userInfo *UserInfo) *UserPermissionsAuditDto {
201+
pa.UserInfo = userInfo
202+
return pa
203+
}
204+
205+
func (pa *UserPermissionsAuditDto) WithEntityAudit(entityAudit sql.AuditLog) *UserPermissionsAuditDto {
206+
pa.EntityAudit = entityAudit
207+
return pa
208+
}

api/deployment/DeploymentConfigRestHandler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (handler *DeploymentConfigRestHandlerImpl) CreateChartFromFile(w http.Respo
8282
}
8383

8484
token := r.Header.Get("token")
85-
if ok := handler.enforcer.Enforce(token, casbin.ResourceGlobal, casbin.ActionUpdate, "*"); !ok {
85+
if ok := handler.enforcer.Enforce(token, casbin.ResourceGlobal, casbin.ActionCreate, "*"); !ok {
8686
common.WriteJsonResp(w, errors.New("unauthorized"), nil, http.StatusForbidden)
8787
return
8888
}
@@ -177,7 +177,7 @@ func (handler *DeploymentConfigRestHandlerImpl) SaveChart(w http.ResponseWriter,
177177
}
178178

179179
token := r.Header.Get("token")
180-
if ok := handler.enforcer.Enforce(token, casbin.ResourceGlobal, casbin.ActionDelete, "*"); !ok {
180+
if ok := handler.enforcer.Enforce(token, casbin.ResourceGlobal, casbin.ActionCreate, "*"); !ok {
181181
common.WriteJsonResp(w, errors.New("unauthorized"), nil, http.StatusForbidden)
182182
return
183183
}
@@ -234,7 +234,7 @@ func (handler *DeploymentConfigRestHandlerImpl) DownloadChart(w http.ResponseWri
234234
}
235235

236236
token := r.Header.Get("token")
237-
if ok := handler.enforcer.Enforce(token, casbin.ResourceGlobal, casbin.ActionUpdate, "*"); !ok {
237+
if ok := handler.enforcer.Enforce(token, casbin.ResourceGlobal, casbin.ActionGet, "*"); !ok {
238238
common.WriteJsonResp(w, errors.New("unauthorized"), nil, http.StatusForbidden)
239239
return
240240
}

0 commit comments

Comments
 (0)