Skip to content

[PROD] Security fixes - release #7052

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

Merged
merged 114 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
f252398
fix: xss dom security issue
hentrymartin Dec 15, 2024
8e86304
fix: lint
hentrymartin Dec 16, 2024
7777ccf
fix: default user privilege
hentrymartin Dec 16, 2024
c38c3ba
fix: denial of service possibilities
hentrymartin Dec 17, 2024
de5c522
fix: lint
hentrymartin Dec 18, 2024
1bc7b95
fix: lint
hentrymartin Dec 18, 2024
7e9b120
fix: get valid ids in communities js
hentrymartin Dec 18, 2024
f28b969
fix: moved metadata path
hentrymartin Dec 18, 2024
41ec4bb
fix: lint
hentrymartin Dec 18, 2024
f04488f
fix: lint
hentrymartin Dec 18, 2024
ef0c69a
fix: lint
hentrymartin Dec 18, 2024
d89f6d1
PM-197 - XSS poor validation error handling
vas3a Dec 18, 2024
ce64f22
PM-198_fix_reflected_XSS
Dec 19, 2024
4de7291
fix: invalid path validation
hentrymartin Dec 19, 2024
0cd7349
fix: removed hardcoded passwords
hentrymartin Dec 19, 2024
39c8b49
fix: removed my account screen
hentrymartin Jan 2, 2025
6483dd5
fix: removed my account related code
hentrymartin Jan 2, 2025
db2f746
fix: removed whole accounts folder
hentrymartin Jan 3, 2025
2c3054a
fix: removed whole accounts folder
hentrymartin Jan 3, 2025
f0ea1ee
fix: snapshot tests
hentrymartin Jan 3, 2025
142f5af
fix: open redirect issues
hentrymartin Jan 6, 2025
3d1eb07
fix: lint
hentrymartin Jan 6, 2025
03e7114
fix: lint
hentrymartin Jan 6, 2025
713e730
fix: lint
hentrymartin Jan 6, 2025
f9f6eeb
fix: removed swagger.yaml
hentrymartin Jan 6, 2025
8030d60
Merge pull request #7023 from topcoder-platform/PM-197_xss-poor-valid…
vas3a Jan 7, 2025
dba16a6
Merge pull request #7026 from topcoder-platform/pm-208
hentrymartin Jan 7, 2025
27c437c
Merge pull request #7020 from topcoder-platform/pm-196
hentrymartin Jan 7, 2025
c70ace6
Merge pull request #7021 from topcoder-platform/pm-200
hentrymartin Jan 7, 2025
0d1e3c8
Merge pull request #7025 from topcoder-platform/pm-207
hentrymartin Jan 7, 2025
b3fa4b4
fix: review comment
hentrymartin Jan 7, 2025
df7dc05
Merge branch 'develop' into pm-204
hentrymartin Jan 7, 2025
b6545c1
validate input
Jan 8, 2025
484fb70
Merge branch 'develop' into PM-198
Jan 8, 2025
0ef26b8
Merge pull request #7024 from topcoder-platform/PM-198
himaniraghav3 Jan 8, 2025
f94bfb8
Remove hardcoded nginx server key
Jan 8, 2025
89c0306
fix: removed unused services
hentrymartin Jan 8, 2025
15871d7
chore: updated from develop
hentrymartin Jan 8, 2025
07f0bce
chore: updated from develop
hentrymartin Jan 8, 2025
edab474
Merge branch 'develop' into pm-205
hentrymartin Jan 8, 2025
df4ee6f
Merge pull request #7030 from topcoder-platform/PM-203
himaniraghav3 Jan 9, 2025
8023ef8
fix: added back mml route
hentrymartin Jan 9, 2025
02a00b7
fix: added back mailchimp as it is used in newsletter subscriptions
hentrymartin Jan 10, 2025
dda3264
fix: added back mailchimp as it is used in newsletter subscriptions
hentrymartin Jan 10, 2025
7f57db6
Merge pull request #7022 from topcoder-platform/pm-199
hentrymartin Jan 10, 2025
b9e3373
fix: removed settings code from community app
hentrymartin Jan 13, 2025
41851b7
fix: remove newsletter signup for members
hentrymartin Jan 13, 2025
7e999cd
fix: removed newsletter subscription
hentrymartin Jan 13, 2025
4c8a153
fix: removed proxy post api as client side is removed
hentrymartin Jan 13, 2025
2dbfff2
fix: removed newsletter preferences
hentrymartin Jan 13, 2025
f4c03df
fix: tests
hentrymartin Jan 13, 2025
4422235
Merge pull request #7031 from topcoder-platform/pm-195
hentrymartin Jan 13, 2025
8309a81
fix: removed settings route
hentrymartin Jan 13, 2025
d2763d8
Merge pull request #7028 from topcoder-platform/pm-205
hentrymartin Jan 13, 2025
3a6e94f
Merge pull request #7027 from topcoder-platform/pm-204
hentrymartin Jan 13, 2025
332c007
fix: removed email subscription form from app components
hentrymartin Jan 13, 2025
0f589ac
fix: removed newsletter archive
hentrymartin Jan 13, 2025
c1ea443
fix: removed mailchimp service
hentrymartin Jan 13, 2025
ce9f102
fix: removed automated smoke test and removed the option from circle ci
hentrymartin Jan 13, 2025
f59c514
fix: privacy violations
hentrymartin Jan 14, 2025
39565d7
fix: lint
hentrymartin Jan 14, 2025
33f4564
fix: lint
hentrymartin Jan 14, 2025
d35c1ff
fix: lint
hentrymartin Jan 14, 2025
89feb70
PM-160 Update links
Jan 15, 2025
1eff28d
fix: unit tests
hentrymartin Jan 15, 2025
95230a6
fix: removed password protection feature from contentful
hentrymartin Jan 15, 2025
98a38bf
fix: lint
hentrymartin Jan 15, 2025
549e21c
fix: unit test
hentrymartin Jan 15, 2025
52aaa6f
fix: unit test
hentrymartin Jan 15, 2025
29655d3
fix: unit test
hentrymartin Jan 15, 2025
e574f3c
fix: unit test
hentrymartin Jan 15, 2025
4c56238
Merge pull request #7033 from topcoder-platform/pm-201
hentrymartin Jan 15, 2025
063c280
Merge pull request #7035 from topcoder-platform/PM-160
himaniraghav3 Jan 16, 2025
8ee91b7
fix: removed thrive and blog feed from home as they are deprecated
hentrymartin Jan 16, 2025
d9d3d74
Merge pull request #7032 from topcoder-platform/pm-195_1
hentrymartin Jan 17, 2025
6ecbfde
Merge pull request #7036 from topcoder-platform/prod-4454
hentrymartin Jan 17, 2025
ada2da3
Merge pull request #7034 from topcoder-platform/pm-210
hentrymartin Jan 17, 2025
089325c
fix: regressions
hentrymartin Jan 20, 2025
c63199c
fix: lint
hentrymartin Jan 20, 2025
3a42fbf
Merge pull request #7037 from topcoder-platform/pm-591
hentrymartin Jan 21, 2025
ef41a05
fix: added feeds route
hentrymartin Jan 22, 2025
36f72d2
Merge pull request #7038 from topcoder-platform/pm-594
hentrymartin Jan 22, 2025
02c96ed
fix: debug logs
hentrymartin Jan 22, 2025
b4615de
Merge pull request #7039 from topcoder-platform/debug-logs
hentrymartin Jan 22, 2025
0b23aec
Update config.yml CORE-1466/1475
Gunasekar-K Jan 23, 2025
a9e9051
Merge pull request #7040 from topcoder-platform/fargate-update
Gunasekar-K Jan 23, 2025
3a0dcc0
fix: removed debug logs
hentrymartin Jan 23, 2025
5b85f91
fix: added some more logs
hentrymartin Jan 23, 2025
b6fe91a
fix: added some more logs
hentrymartin Jan 23, 2025
e749e2d
Merge pull request #7041 from topcoder-platform/removed-debug-logs
hentrymartin Jan 23, 2025
110ec4e
fix: use promisify instead of fs.promises
hentrymartin Jan 23, 2025
b03d769
Merge pull request #7042 from topcoder-platform/promisify-fix
hentrymartin Jan 23, 2025
d879cd5
fix: added more debug logs
hentrymartin Jan 23, 2025
8467218
fix: added more debug logs
hentrymartin Jan 23, 2025
ac93e3a
Merge pull request #7043 from topcoder-platform/promisify-fix
hentrymartin Jan 23, 2025
0e2c6f7
fix: added more logs
hentrymartin Jan 23, 2025
bb5ecf6
fix: added more logs
hentrymartin Jan 23, 2025
6904c25
Merge pull request #7044 from topcoder-platform/promisify-fix
hentrymartin Jan 23, 2025
8f8a73a
fix: debugging develop issue
hentrymartin Jan 23, 2025
f2b1ae5
Merge pull request #7045 from topcoder-platform/promisify-fix
hentrymartin Jan 23, 2025
adc8090
fix: debugging develop issue
hentrymartin Jan 23, 2025
ee435aa
Merge pull request #7046 from topcoder-platform/promisify-fix
hentrymartin Jan 23, 2025
0619fd5
fix: added back blog js
hentrymartin Jan 23, 2025
902995b
Merge pull request #7047 from topcoder-platform/promisify-fix
hentrymartin Jan 23, 2025
695abaf
fix: debugging contentful routes
hentrymartin Jan 24, 2025
efd67a8
fix: lint
hentrymartin Jan 24, 2025
8a99bf5
Merge pull request #7048 from topcoder-platform/promisify-fix
hentrymartin Jan 24, 2025
29d6941
fix: removed debug logs
hentrymartin Jan 24, 2025
b00f67f
fix: removed debug logs
hentrymartin Jan 24, 2025
570fb33
fix: updated node version in dockerfile
hentrymartin Jan 27, 2025
0aa101c
Merge pull request #7049 from topcoder-platform/promisify-fix
hentrymartin Jan 27, 2025
cf4fedf
fix: updated node version in circle ci test step
hentrymartin Jan 27, 2025
a1b1ce3
Merge pull request #7051 from topcoder-platform/dockerfile-node-update
hentrymartin Jan 27, 2025
30766d1
fix: updated cache key
hentrymartin Jan 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 30 additions & 29 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ install_deploysuite: &install_deploysuite
cp ./../buildscript/buildenv.sh .
cp ./../buildscript/awsconfiguration.sh .
restore_cache_settings_for_build: &restore_cache_settings_for_build
key: docker-node-modules-v3-{{ checksum "package-lock.json" }}
key: docker-node-modules-v4-{{ checksum "package-lock.json" }}

save_cache_settings: &save_cache_settings
key: docker-node-modules-v3-{{ checksum "package-lock.json" }}
key: docker-node-modules-v4-{{ checksum "package-lock.json" }}
paths:
- node_modules

Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
command: |
source awsenvconf
source buildenvvar
./master_deploy.sh -d ECS -e DEV -t latest -s dev_communityapp_taskvar -i communityapp
./master_deploy.sh -d ECS -e DEV -t latest -s dev_communityapp_taskvar -i communityapp -p FARGATE

# Build & Deploy against testing backend
# "build-test":
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
command: |
source awsenvconf
source buildenvvar
./master_deploy.sh -d ECS -e PROD -t latest -s prod_communityapp_taskvar -i communityapp
./master_deploy.sh -d ECS -e PROD -t latest -s prod_communityapp_taskvar -i communityapp -p FARGATE
curl --request POST \
--url https://circleci.com/api/v2/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pipeline \
--header "Circle-Token: ${CIRCLE_TOKEN}" \
Expand Down Expand Up @@ -260,37 +260,37 @@ jobs:
# path: ./automated-smoke-test/test-results

# Automated Smoke Testing against Production
Smoke-Testing-On-Production:
<<: *defaults
steps:
# Initialization.
- checkout
- setup_remote_docker
- run: *install_dependency
- run: *install_deploysuite
# Restoration of node_modules from cache.
- restore_cache: *restore_cache_settings_for_build
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh PROD
./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar
- run:
name: "Run automation"
no_output_timeout: 20m
command: |
source awsenvconf
source buildenvvar
./automated-smoke-test/smoketest.sh automation-config-prod.json prod
- store_artifacts:
path: ./automated-smoke-test/test-results
# Smoke-Testing-On-Production:
# <<: *defaults
# steps:
# # Initialization.
# - checkout
# - setup_remote_docker
# - run: *install_dependency
# - run: *install_deploysuite
# # Restoration of node_modules from cache.
# - restore_cache: *restore_cache_settings_for_build
# - run:
# name: "configuring environment"
# command: |
# ./awsconfiguration.sh PROD
# ./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar
# - run:
# name: "Run automation"
# no_output_timeout: 20m
# command: |
# source awsenvconf
# source buildenvvar
# ./automated-smoke-test/smoketest.sh automation-config-prod.json prod
# - store_artifacts:
# path: ./automated-smoke-test/test-results

# Test job for the cases when we do not need deployment. It just rapidly
# installs (updates) app dependencies, and runs tests (ESLint, Stylelint,
# Jest unit-tests).
test:
docker:
- image: circleci/node:8.11.1
- image: circleci/node:10.24.1
steps:
- checkout
- restore_cache:
Expand Down Expand Up @@ -360,6 +360,7 @@ workflows:
- develop
- TOP-1390
- PM-191-2
- pm-199
# This is alternate dev env for parallel testing
# Deprecate this workflow due to beta env shutdown
# https://topcoder.atlassian.net/browse/CORE-251
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
# and runs it against the specified Topcoder backend (development or
# production) when container is executed.

FROM node:8.11.2
FROM node:10.24.1
LABEL app="Community App" version="1.0"
RUN useradd -m -s /bin/bash appuser

WORKDIR /opt/app
COPY . .

RUN chown -R appuser:appuser /opt/app
USER appuser

################################################################################
# Receiving of build arguments.

Expand Down
Loading
Loading