Skip to content

Vulnerabilities/go version aws sdk#605

Open
oskarhurst wants to merge 3 commits intocwbi-devfrom
vulnerabilities/go-version-aws-sdk
Open

Vulnerabilities/go version aws sdk#605
oskarhurst wants to merge 3 commits intocwbi-devfrom
vulnerabilities/go-version-aws-sdk

Conversation

@oskarhurst
Copy link
Copy Markdown
Contributor

Go and aws sdk version bump, and docker clean up

Copy link
Copy Markdown
Contributor

@MikeNeilson MikeNeilson left a comment

Choose a reason for hiding this comment

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

Most of this looks reason. Some odd spelling changes though.

"log"

"github.com/aws/aws-sdk-go/aws"
// "github.com/aws/aws-sdk-go/aws"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If not required, just delete.

}

func (cfg Config) AWSConfig() aws.Config {
// func (cfg Config) AWSConfig() aws.Config {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same as above, if code is no longer required, just remove it.

"github.com/jmoiron/sqlx"
"github.com/labstack/echo/v4"
// "github.com/jmoiron/sqlx"
// "github.com/labstack/echo/v4"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

favor deletion over commenting out code.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove unused code.

# Install Git
RUN apk update && apk add --no-cache ca-certificates

RUN apk update && \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Only upgrade should be required, also consider splitting the upgrade and add steps. Can speed things up for local dev if you need to add a package.

See https://github.com/opendcs/opendcs/blob/8655b71b0040cc6ca7e18c6cdfb465f844e852ca/Dockerfile#L17-L18 (NOTE: also possible the update is required, in which case we should fix opendcs.)

# S3 Configuration
# ------------------------- #
WRITE_TO_BUCKET: str = os.getenv("WRITE_TO_BUCKET", default="castle-data-develop")
WRITE_TO_BUCKET: str = os.getenv("WRITE_TO_BUCKET", default="caste-data-develop")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

was the bucket named incorrectly? castle is an objectively correct spelling.

depends_on:
cumulusdb:
condition: service_started No newline at end of file
condition: service_started
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

service_healthy if likely a better choice here.

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.

3 participants