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

Dev Version : Stable #182

Merged
merged 1,091 commits into from
Dec 21, 2023
Merged

Dev Version : Stable #182

merged 1,091 commits into from
Dec 21, 2023

Conversation

kshitijrajsharma
Copy link
Member

  • Launches Dev version : Stable

kshitijrajsharma and others added 30 commits March 21, 2023 12:46
Add storage account (blob store) in order to shunt large database backup
files to Azure from AWS.
Add a storage account to resource group
- Allow public network access to Azure Key Vault inorder to allow
  Terraform Worker IP.
Add systemd unit files for API, backend and worker services. Care has
been taken to add security options without compromising program
functions.

Unit files check for the existence of env files needed for the programs
We need some way of managing server configurations, policy assurances,
and a way to maintain state and detect drifts in configuration.
Terraform has proved cumbersome to use for this purpose due to the
complexity involved.

Ansible is a better choice and does not require any agents and is
idempotent (to an extent). Drifts can be checked without applying
changes. Ansible is also easy to learn and understand; it use YAML
playbooks which devs and DevOps understand with practice managing CI
configurations.

Organisation of the file hierarchy is pending. Inventory files won't be
commited to the SCM and will be maintained centrally somewhere in a
private repository accessible by devs and devops.
Add systemd unit files for raw-data services
Add inital ansible config management files
Use ansible to setup systemd services, reverse proxy, and dependencies.

- Setup systemd service files for raw-data API, Worker and Backend
- Add associated env files for systemd along with basic sanity checks
- Setup Caddy server as a reverse proxy along with appropriate
  configuration.
- Parameterise variables
- Consolidate multiple similar resources using loops
Improve ansible scripts to cover more ground
Quick Fix : Name missing from countries
Template modules don't support using templates in the managed node. So
switching to using local template as source.
- Worker and API systemd files do not require EnvironmentFile option. So
  removed it.
- Added a systemd daemon_reload action in Ansible to reread config after
  changes to systemd unit files
- Standardise the Virtualenv path to ${PROJECT_DIR}/.virtualenv to make
  it uniform between backend and API service
- Dev confirms that there are no conflicting versions of dependencies
  between backend and API
- Adjust systemd unit files to reflect the change
Fix virtualenv path for backend and API
kshitijrajsharma and others added 28 commits November 21, 2023 14:21
Bug - Fix : Fixes Leaked Connection
Enhance Bind Zip and updated Permission
Feature : Polygon Stats Including Data Completeness Metrics
@kshitijrajsharma kshitijrajsharma merged commit 2d22e28 into master Dec 21, 2023
13 of 17 checks passed
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

checkov found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

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.

2 participants