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

[#707] Bug in building metadata validation service #708

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

placek
Copy link
Contributor

@placek placek commented Apr 12, 2024

Closes #707.

This pull request addresses two main issues following the user story's requirements. Firstly, it resolves a bug that prevented the successful rebuilding of the metadata validation service image. Secondly, it addresses a problem related to configuring the Content Security Policy (CSP) for Google Tag Manager.

The commit message associated with the first part of the changes reveals a modification made to the CSP directive in the docker-compose.yml file to include "https://www.googletagmanager.com" in the img-src directive. This addition permits the Google Tag Manager resources in the service, enhancing security measures by properly configuring the CSP policy.

The second commit message describes the implementation of a build process that prohibits pulling images from external repositories when deploying the stack. The Makefile modification ensures that the build command prevents external image pulling during deployment through the addition of the --build flag in the docker-compose command. This change aligns with the requirement to restrict access to the metadata validation service to localhost, strengthening overall security measures.

placek added 2 commits April 12, 2024 13:59
Implement build process to create images that cannot be pulled from
external repositories when deploying the stack. The modification in the
Makefile sets up the build command to prevent pulling images externally
during the deployment process. By adding the `--build` flag in the
`docker-compose` command, it ensures that images are only built locally
and not fetched from external sources. This aligns with the requirement
to restrict access to the metadata validation service, ensuring that
only localhost is used for accessing resources, thus strengthening
security measures.
In response to the user story requiring the metadata validation service
to be accessible only from localhost for security reasons, this commit
includes a modification to the CSP (Content Security Policy) directive
in the docker-compose.yml file. The change specifically adds
'https://www.googletagmanager.com' to the img-src directive, ensuring
that resources from Google Tag Manager are permitted in the service.
This adjustment enhances security measures by properly configuring the
CSP policy to allow resources only from specified sources.
@placek placek added 🐛 Bug Something isn't working 🏗 Infrastructure labels Apr 12, 2024
@placek placek self-assigned this Apr 12, 2024
@placek placek requested review from Ryun1 and MSzalowski as code owners April 12, 2024 12:10
@placek placek linked an issue Apr 12, 2024 that may be closed by this pull request
@placek placek merged commit f9bbeaa into develop Apr 12, 2024
1 check passed
@placek placek deleted the fix/707-bug-in-building-metadata-validation-service branch April 12, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working 🏗 Infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in building metadata validation service
2 participants