Skip to content

[CX-2682, CX-2683, CX-2684] - Move all configuration/secrets to AWS Secret Manager#2

Merged
mahendra-kathirvel merged 6 commits intomainfrom
vivek_cx_2682
Apr 11, 2025
Merged

[CX-2682, CX-2683, CX-2684] - Move all configuration/secrets to AWS Secret Manager#2
mahendra-kathirvel merged 6 commits intomainfrom
vivek_cx_2682

Conversation

@vivekpunchh
Copy link
Copy Markdown

@vivekpunchh vivekpunchh commented Apr 2, 2025

Comment thread Dockerfile Outdated
@@ -0,0 +1,27 @@
# Build the application from source
FROM golang:1.24 AS build-stage
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets set a specific version of go ie. 1.24.2

Comment thread Dockerfile Outdated
RUN CGO_ENABLED=0 GOOS=linux go build -o /server main.go

# Deploy the application binary into a lean image
FROM alpine:3.14 AS build-release-stage
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See if we have the latest release of alpine 3.21

Comment thread config/config.go Outdated
if k == "db_port" {
u64, _ := strconv.ParseUint(v.(string), 10, 32)
dbObj.Port = uint(u64)
// dbobj.Port = uint(u64)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// dbobj.Port = uint(u64)
// dbobj.Port = uint(u64)

remove this

Comment thread go.mod
@@ -2,7 +2,11 @@ module com.lc.go.codepush/server

go 1.21.5
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go version not matching up with the version mentioned in Dockerfile

Comment thread Dockerfile Outdated
COPY --from=build-stage server .

EXPOSE 8080
ENTRYPOINT ["./server"] No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add new line here

Comment thread config/config.go Outdated

// default values
config.DBUser.MaxIdleConns = 5
config.DBUser.MaxOpenConns = 60
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reduce the connection to 20

@mahendra-kathirvel mahendra-kathirvel changed the title [CX-2682, CX-2684] - Move all configuration/secrets to AWS Secret Man… [CX-2682, CX-2684] - Move all configuration/secrets to AWS Secret Manager Apr 11, 2025
@vivekpunchh vivekpunchh changed the title [CX-2682, CX-2684] - Move all configuration/secrets to AWS Secret Manager [CX-2682, CX-2683, CX-2684] - Move all configuration/secrets to AWS Secret Manager Apr 11, 2025
@mahendra-kathirvel mahendra-kathirvel merged commit e1d0565 into main Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants