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

#1959 - Staging sims prod environment formio #1999

Merged
merged 6 commits into from
Jun 8, 2023

Conversation

guru-aot
Copy link
Collaborator

@guru-aot guru-aot commented Jun 8, 2023

Formio permission change in the dockerfile while build.

The tried combinations are 640, 644, 650, 654, 750, 754, 770, 774 and 777. So with the least permission level of 770, 774 and 777 which worked. Selected 770.

@guru-aot guru-aot added the Devops Devops label Jun 8, 2023
@guru-aot guru-aot self-assigned this Jun 8, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

github-actions bot commented Jun 8, 2023

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 17.91% ( 2086 / 11648 )
Methods: 8.27% ( 123 / 1488 )
Lines: 20.68% ( 1827 / 8835 )
Branches: 10.26% ( 136 / 1325 )

@github-actions
Copy link

github-actions bot commented Jun 8, 2023

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 49.81% ( 267 / 536 )
Methods: 41.56% ( 32 / 77 )
Lines: 55.33% ( 218 / 394 )
Branches: 26.15% ( 17 / 65 )

@github-actions
Copy link

github-actions bot commented Jun 8, 2023

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 69.4% ( 390 / 562 )
Methods: 59.15% ( 42 / 71 )
Lines: 71.52% ( 344 / 481 )
Branches: 40% ( 4 / 10 )

@@ -48,7 +48,7 @@ RUN ln -sf $NPM_PACKAGES/node_modules node_modules
ENV DEBUG=""

RUN set -x \
&& chmod -R 777 /app/
&& chmod -R 770 /app/
Copy link
Collaborator

@dheepak-aot dheepak-aot Jun 8, 2023

Choose a reason for hiding this comment

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

Asking for clarification.

What is the standard that we are trying to comply with here (by changing permission)?

Sonar? or any security vulnerability issue from scans previously?

Copy link
Collaborator

Choose a reason for hiding this comment

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

We are trying to be less permissive as possible and still have the form.io server running.
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Security vulnerability to restrict others to have any permission other than the owner and group.

@github-actions
Copy link

github-actions bot commented Jun 8, 2023

E2E SIMS API Coverage Report

Totals Coverage
Statements: 43.54% ( 3032 / 6964 )
Methods: 37.75% ( 339 / 898 )
Lines: 48.6% ( 2526 / 5197 )
Branches: 19.22% ( 167 / 869 )

Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot left a comment

Choose a reason for hiding this comment

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

Thanks for doing the change. Looks good 👍
For history, please just mention in the PR description that other permission like 750 impacted form.io server execution.

Copy link
Collaborator

@dheepak-aot dheepak-aot left a comment

Choose a reason for hiding this comment

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

👍 thanks for taking care.

Copy link
Collaborator

@sh16011993 sh16011993 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Contributor

@ann-aot ann-aot left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

@andrepestana-aot andrepestana-aot left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

@andrepestana-aot andrepestana-aot left a comment

Choose a reason for hiding this comment

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

👍

@guru-aot guru-aot merged commit b688604 into main Jun 8, 2023
@guru-aot guru-aot deleted the feature/#1959-Staging-SIMS-Prod-Environment-Formio branch June 8, 2023 18:49
@guru-aot guru-aot temporarily deployed to DEV June 8, 2023 18:56 — with GitHub Actions Inactive
@guru-aot guru-aot temporarily deployed to DEV June 8, 2023 18:57 — with GitHub Actions Inactive
@guru-aot guru-aot temporarily deployed to DEV June 8, 2023 18:57 — with GitHub Actions Inactive
@guru-aot guru-aot temporarily deployed to DEV June 8, 2023 18:57 — with GitHub Actions Inactive
@guru-aot guru-aot temporarily deployed to DEV June 8, 2023 18:57 — with GitHub Actions Inactive
@guru-aot guru-aot temporarily deployed to DEV June 8, 2023 18:59 — with GitHub Actions Inactive
@guru-aot guru-aot temporarily deployed to DEV June 8, 2023 18:59 — with GitHub Actions Inactive
andrewsignori-aot pushed a commit that referenced this pull request Jun 8, 2023
Formio permission change in the dockerfile while build. 

The tried combinations are 640, 644, 650, 654, 750, 754, 770, 774 and
777. So with the least permission level of 770, 774 and 777 which
worked. Selected 770.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Devops Devops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants