Skip to content

Commit ac9affc

Browse files
Merge pull request #6855 from devtron-labs/main-sync-27-10
sync: main sync 27 10
2 parents 9982c7e + 6d2c166 commit ac9affc

File tree

73 files changed

+3630
-251
lines changed

Some content is hidden

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

73 files changed

+3630
-251
lines changed

App.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"fmt"
2424
"github.com/devtron-labs/common-lib/middlewares"
2525
pubsub "github.com/devtron-labs/common-lib/pubsub-lib"
26+
"github.com/devtron-labs/common-lib/securestore"
2627
posthogTelemetry "github.com/devtron-labs/common-lib/telemetry"
2728
"github.com/devtron-labs/devtron/pkg/eventProcessor"
2829
"github.com/devtron-labs/devtron/pkg/eventProcessor/in"
@@ -47,6 +48,13 @@ import (
4748
"go.uber.org/zap"
4849
)
4950

51+
func init() {
52+
err := securestore.SetEncryptionKey()
53+
if err != nil {
54+
log.Println("error in setting encryption key", "err", err)
55+
}
56+
}
57+
5058
type App struct {
5159
MuxRouter *router.MuxRouter
5260
Logger *zap.SugaredLogger

CHANGELOG/release-notes-v1.8.1.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## v1.8.1
2+
3+
4+
## Bugs
5+
- fix: unsaved changes popup showing after saving manifest ([#2922](https://github.com/devtron-labs/dashboard/pull/2922))
6+
7+
8+

CHANGELOG/release-notes-v1.8.2.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## v1.8.2
2+
3+
## Enhancements
4+
- feat: linked ci should have artifacts of parent ci (#6836)
5+
## Bugs
6+
- fix: clear cached reference charts for Deployment chart versions 4.18.0, 4.19.0, 1.0.0, and 1.1.0 (#6841)
7+
- fix: Custom chart with dependencies are not working in Devtron Applications (#6834)
8+
- fix: Terraform plugin fix in v1.0.1 (#6830)
9+
## Others
10+
- misc: Api specs and validations added (#6807)
11+
12+

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
all: fetch-all-env build
44

5-
TARGET_BRANCH?=develop
5+
TARGET_BRANCH?=main
66
TAG?=$(shell bash -c 'git log --pretty=format:'%h' -n 1')
77
FLAGS=
88
ENVVAR=

api/auth/user/UserRestHandler_ent.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,16 @@ func (handler UserRestHandlerImpl) checkRBACForUserCreate(token string, requestS
2525
isAuthorised = handler.enforcer.Enforce(token, casbin.ResourceUser, casbin.ActionCreate, filter.Team)
2626
case filter.Entity == bean2.CLUSTER_ENTITIY:
2727
isAuthorised = handler.userCommonService.CheckRbacForClusterEntity(filter.Cluster, filter.Namespace, filter.Group, filter.Kind, filter.Resource, token, handler.CheckManagerAuth)
28-
case filter.Entity == bean2.CHART_GROUP_ENTITY && len(roleFilters) == 1: //if only chartGroup entity is present in request then access will be judged through super-admin access
29-
isAuthorised = isActionUserSuperAdmin
30-
case filter.Entity == bean2.CHART_GROUP_ENTITY && len(roleFilters) > 1: //if entities apart from chartGroup entity are present, not checking chartGroup access
28+
case filter.Entity == bean2.CHART_GROUP_ENTITY && len(roleFilters) == 1:
29+
// If only chart group in direct permissions, but user is assigning role groups too,
30+
// defer the chart group authorization to the role group check
31+
if len(roleGroups) > 0 {
32+
isAuthorised = true // Will be validated in role group section
33+
} else {
34+
isAuthorised = isActionUserSuperAdmin
35+
}
36+
case filter.Entity == bean2.CHART_GROUP_ENTITY && len(roleFilters) > 1:
37+
// If there are other entities in addition to chart group, ignore chart group check
3138
isAuthorised = true
3239
default:
3340
isAuthorised = false

api/helm-app/service/HelmAppService.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,10 +965,10 @@ func (impl *HelmAppServiceImpl) TemplateChart(ctx context.Context, templateChart
965965
registryCredential = &gRPC.RegistryCredential{
966966
RegistryUrl: appStoreAppVersion.AppStore.DockerArtifactStore.RegistryURL,
967967
Username: appStoreAppVersion.AppStore.DockerArtifactStore.Username,
968-
Password: appStoreAppVersion.AppStore.DockerArtifactStore.Password,
968+
Password: appStoreAppVersion.AppStore.DockerArtifactStore.Password.String(),
969969
AwsRegion: appStoreAppVersion.AppStore.DockerArtifactStore.AWSRegion,
970970
AccessKey: appStoreAppVersion.AppStore.DockerArtifactStore.AWSAccessKeyId,
971-
SecretKey: appStoreAppVersion.AppStore.DockerArtifactStore.AWSSecretAccessKey,
971+
SecretKey: appStoreAppVersion.AppStore.DockerArtifactStore.AWSSecretAccessKey.String(),
972972
RegistryType: string(appStoreAppVersion.AppStore.DockerArtifactStore.RegistryType),
973973
RepoName: appStoreAppVersion.AppStore.Name,
974974
IsPublic: ociRegistryConfig.IsPublic,

charts/devtron/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: devtron-operator
3-
appVersion: 1.8.0
3+
appVersion: 1.8.2
44
description: Chart to configure and install Devtron. Devtron is a Kubernetes Orchestration system.
55
keywords:
66
- Devtron
@@ -11,7 +11,7 @@ keywords:
1111
- argocd
1212
- Hyperion
1313
engine: gotpl
14-
version: 0.22.96
14+
version: 0.22.98
1515
sources:
1616
- https://github.com/devtron-labs/charts
1717
dependencies:

charts/devtron/devtron-bom.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ global:
1515
PG_DATABASE: orchestrator
1616
extraManifests: []
1717
installer:
18-
release: "v1.8.0"
18+
release: "v1.8.2"
1919
registry: ""
2020
image: "inception"
2121
tag: "473deaa4-185-21582"
@@ -41,13 +41,13 @@ components:
4141
FEATURE_CODE_MIRROR_ENABLE: "true"
4242
FEATURE_GROUPED_APP_LIST_FILTERS_ENABLE: "true"
4343
registry: ""
44-
image: "dashboard:5196e935-690-36024"
44+
image: "dashboard:b00aa204-690-36533"
4545
imagePullPolicy: IfNotPresent
4646
healthPort: 8080
4747
devtron:
4848
registry: ""
49-
image: "hyperion:1ae65fbb-280-36074"
50-
cicdImage: "devtron:1ae65fbb-434-36069"
49+
image: "hyperion:261df88d-280-36531"
50+
cicdImage: "devtron:261df88d-434-36530"
5151
imagePullPolicy: IfNotPresent
5252
customOverrides: {}
5353
podSecurityContext:
@@ -117,7 +117,7 @@ components:
117117
image: postgres_exporter:v0.10.1
118118
gitsensor:
119119
registry: ""
120-
image: "git-sensor:880420ac-200-36032"
120+
image: "git-sensor:b82f5fdb-200-36532"
121121
imagePullPolicy: IfNotPresent
122122
serviceMonitor:
123123
enabled: false

charts/devtron/values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ nfs:
4242
extraManifests: []
4343
installer:
4444
repo: "devtron-labs/devtron"
45-
release: "v1.8.0"
45+
release: "v1.8.2"
4646
registry: ""
4747
image: inception
4848
tag: 473deaa4-185-21582
@@ -97,13 +97,13 @@ components:
9797
FEATURE_CODE_MIRROR_ENABLE: "true"
9898
FEATURE_GROUPED_APP_LIST_FILTERS_ENABLE: "true"
9999
registry: ""
100-
image: "dashboard:5196e935-690-36024"
100+
image: "dashboard:b00aa204-690-36533"
101101
imagePullPolicy: IfNotPresent
102102
healthPort: 8080
103103
devtron:
104104
registry: ""
105-
image: "hyperion:1ae65fbb-280-36074"
106-
cicdImage: "devtron:1ae65fbb-434-36069"
105+
image: "hyperion:261df88d-280-36531"
106+
cicdImage: "devtron:261df88d-434-36530"
107107
imagePullPolicy: IfNotPresent
108108
customOverrides: {}
109109
healthPort: 8080
@@ -200,7 +200,7 @@ components:
200200
volumeSize: "20Gi"
201201
gitsensor:
202202
registry: ""
203-
image: "git-sensor:880420ac-200-36032"
203+
image: "git-sensor:b82f5fdb-200-36532"
204204
imagePullPolicy: IfNotPresent
205205
serviceMonitor:
206206
enabled: false

cmd/external-app/externalApp.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import (
2020
"context"
2121
"errors"
2222
"fmt"
23+
"github.com/devtron-labs/common-lib/securestore"
24+
"log"
2325
"net/http"
2426
"os"
2527
"time"
@@ -35,6 +37,13 @@ import (
3537
"go.uber.org/zap"
3638
)
3739

40+
func init() {
41+
err := securestore.SetEncryptionKey()
42+
if err != nil {
43+
log.Println("error in setting encryption key", "err", err)
44+
}
45+
}
46+
3847
type App struct {
3948
db *pg.DB
4049
sessionManager *authMiddleware.SessionManager

0 commit comments

Comments
 (0)