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

Set up basic auth for the staging envrionment #1003

Closed
MSzalowski opened this issue May 13, 2024 · 1 comment · Fixed by #1020
Closed

Set up basic auth for the staging envrionment #1003

MSzalowski opened this issue May 13, 2024 · 1 comment · Fixed by #1020
Assignees

Comments

@MSzalowski
Copy link
Contributor

MSzalowski commented May 13, 2024

Description:
We need to set up basic authentication for our staging environment. This is to ensure that only authorized users can access the staging environment, where we plan to present some of our newest features to elect users. Implementing basic authentication will help secure the environment and prevent unauthorized access or exploitation.

Objective:

  • Secure the staging environment with basic authentication.
  • Ensure that only authorized users with the correct credentials can access the staging environment.

Requirements:

  1. Basic Authentication Setup:

    • Implement basic auth on the staging server.
    • Create a set of credentials (username and password) to be shared with authorized users.
  2. Documentation:

    • Provide documentation on how to access the staging environment with the basic auth credentials.
    • Include steps for updating or changing the credentials as needed.
  3. Testing:

    • Verify that the basic auth is correctly implemented and that unauthorized users cannot access the staging environment.
    • Ensure that the staging environment remains functional and accessible to those with the correct credentials.
@MSzalowski MSzalowski moved this to To do in Govtool all May 13, 2024
@placek placek self-assigned this May 14, 2024
@placek placek moved this from To do to In progress in Govtool all May 14, 2024
placek added a commit that referenced this issue May 14, 2024
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 a pull request May 14, 2024 that will close this issue
placek added a commit that referenced this issue May 14, 2024
…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 added a commit that referenced this issue May 14, 2024
…th-for-the-staging-envrionment

[#1003] Apply basic auth on staging environment
@github-project-automation github-project-automation bot moved this from In progress to Done in Govtool all May 14, 2024
@MSzalowski MSzalowski moved this from Done to In QA in Govtool all May 15, 2024
@pmbinapps
Copy link

To be checked on Stage env

@pmbinapps pmbinapps assigned pmbinapps and unassigned placek May 15, 2024
@pmbinapps pmbinapps moved this from In QA to In staging in Govtool all May 16, 2024
@bosko-m bosko-m moved this from In staging to Done in Govtool all Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants