MetaCell / MetaCell/cloud-harness

Common microservice: get runtime environment

Open
#706 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
19
Forks
5
Avg merge
3d 18h
Merged PRs (30d)
3

Description

Currently there is no generic way to setup configurations that are different on the different environments in the frontend, at runtime. One example is the google analytics tag between dev and prod environment.

The common microservice provides that for Sentry and Accounts but there is no generic way to add more.

A new endpoint can be added to the common microservice to get global configurations, say `GET api/environment?var=A`.

This will return the configuration variable named "A" (note that is better not to expose any environmental variable from the runtime, but only the values that are intended to)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the common microservice and its existing Sentry and Accounts configuration endpoints. Trace how runtime configuration is exposed, then determine where the proposed GET api/environment?var=A behavior should be covered. Done means an approved configuration variable can be retrieved for frontend use without exposing arbitrary environment variables.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.