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

[#1003] Apply basic auth on staging environment #1020

Merged

Conversation

placek
Copy link
Contributor

@placek placek commented May 14, 2024

Closes #1003.

This pull request addresses Issue #1003, focusing on setting up basic authentication for the staging environment. The implementation of basic authentication is crucial to control access to the staging environment and ensure that only authorized users can access it.

The changes in this pull request involve setting up environment variables for different environments (dev, test, and staging) to enable distinct configurations. Specifically, modifications were made to the .envrc file to define environment variables based on the selected environment, and adjustments were applied to the config.mk file to generate the necessary nginx authentication file tailored to the chosen environment. These changes improve the security of the staging environment by enforcing basic authentication for access control.

In this commit, basic authentication has been implemented on the staging
environment to ensure that only authorized users can access it.
Different environment variables have been set up for each environment
(dev, test, staging) to provide different configurations. This allows
for specifying the basic authentication credentials specific to the
staging environment. The changes made include modifying the .envrc file
to set environment variables based on the selected environment, as well
as updating the configuration in config.mk to generate the appropriate
nginx authentication file based on the environment chosen.
@placek placek linked an issue May 14, 2024 that may be closed by this pull request
…b Actions

In this commit, the necessary changes have been made in the GitHub
Actions workflows to apply the basic authentication environment
variables where needed. This update ensures that the correct credentials
are utilized for basic authentication in the different environments
(beta, dev, staging, test). The workflow files for these environments
have been modified to include the specific environment variables related
to basic authentication. For instance, in the
build-and-deploy-staging.yml file, the environment variable
`STAGING_NGINX_BASIC_AUTH` has been introduced to set the basic
authentication credentials for the staging environment.
@placek placek marked this pull request as ready for review May 14, 2024 09:51
@placek placek requested review from adgud, Ryun1 and MSzalowski as code owners May 14, 2024 09:51
@placek
Copy link
Contributor Author

placek commented May 14, 2024

credentials updated on https://bw.binarapps.com/#/organizations/7a607653-09a5-432b-9783-809494c16cbe/vault

@placek placek merged commit 624fd10 into develop May 14, 2024
@placek placek deleted the chore/1003-set-up-basic-auth-for-the-staging-envrionment branch May 14, 2024 10:24
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.

Set up basic auth for the staging envrionment
2 participants