Giter VIP home page Giter VIP logo

Comments (3)

urvisavla avatar urvisavla commented on June 12, 2024

As part of this we can also:

  1. Assess whether there are any command-line flags that are not inherently "global" and could potentially vary based on the specific subcommand. In such case, we may need to allow users to override these specific environment variables using command-line options. We can start with identifying any flags falling within this category.
  2. Review current validations for each command and their respective subcommands tree and make adjustments/improvements where necessary.

from go.

urvisavla avatar urvisavla commented on June 12, 2024

I have a PR that introduces a deprecation warning for the --db-url command-line parameter. This PR also includes the necessary changes to support a config flag exclusively via environment variables. However, I'm not sure if this is the best way to go. Here are a few reasons why:

  1. If we make one config parameter exclusively environment variables, the inconsistency could confuse users.
  2. Users can run multiple Horizon instances, and these instances might need to connect to different databases.
    For example, they might have an API-only instance and an ingestion instance on the same machine. In such cases, the API instance might need to use a read-only database (ro db instance), while the ingestion instance needs the db-url parameter to point to a read-write database (rw db instance). To manage this, users would have to create extra scripts to pass different environment variables. Keeping the option to set db-url via the command line might be simpler for users.

I agree that command-line parameters may not be the most secure approach, and we may need to rethink how we handle Horizon's configuration as a whole. However, recommending the use of environment variables for configuring Horizon in our public documentation guides users toward a more secure and proper setup.

I'd love to hear your thoughts on this, @mollykarcher, @sreuland, @aditya1702.

from go.

urvisavla avatar urvisavla commented on June 12, 2024

As discussed during the Partner Experience team meeting, we have decided not to proceed with this and instead favor #5045. Hence, closing this issue.

from go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.