Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make upgrade fails in devstack for lms-shell #33287

Closed
timmc-edx opened this issue Sep 19, 2023 · 1 comment
Closed

make upgrade fails in devstack for lms-shell #33287

timmc-edx opened this issue Sep 19, 2023 · 1 comment
Assignees

Comments

@timmc-edx
Copy link
Contributor

The command make upgrade fails for edxapp in lms-shell because the wget package is missing.

wget is used by the common_constraints.txt make target. We recently started to see failures running this command in lms-shell in devstack. This has probably been going on the entire time, but the error suppression was only removed recently in #33271.

timmc-edx added a commit that referenced this issue Sep 19, 2023
It's needed by `make common_constraints.txt`. We're starting to see
failures running this command in lms-shell in devstack. This has probably
been going on the entire time, but the error suppression was only removed
recently in <#33271>.

The new RUN instruction for installing wget is added to the development
layer only, partly to limit image sizes and partly to make life harder for
any attacker who manages to gain code execution in production.

I've moved `USER app` from the end of the `base` layer to the start of the
`production` layer, since the only other layer (in this file) that builds
on `base` is `development`, which more or less immediately switches back
to root. (The intervening COPY instruction is not affected by the current
user.)

Ticket: #33287
@timmc-edx
Copy link
Contributor Author

Fixing with #33288

timmc-edx added a commit that referenced this issue Sep 19, 2023
It's needed by `make common_constraints.txt`. We're starting to see
failures running this command in lms-shell in devstack. This has probably
been going on the entire time, but the error suppression was only removed
recently in <#33271>.

The new RUN instruction for installing wget is added to the development
layer only, partly to limit image sizes and partly to make life harder for
any attacker who manages to gain code execution in production.

I've moved `USER app` from the end of the `base` layer to the start of the
`production` layer, since the only other layer (in this file) that builds
on `base` is `development`, which more or less immediately switches back
to root. (The intervening COPY instruction is not affected by the current
user.)

Ticket: #33287
@timmc-edx timmc-edx self-assigned this Sep 20, 2023
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

No branches or pull requests

1 participant