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

Problem: there is not an easy way to load initial data into the system #961

Open
jraddaoui opened this issue Jun 5, 2024 · 0 comments
Open

Comments

@jraddaoui
Copy link
Collaborator

jraddaoui commented Jun 5, 2024

Is your feature request related to a problem? Please describe.

The current workflow requires a default location in the database in order to store and/or proxy package downloads. In the development environment we work around this issue by using a Kubernetes job that makes sure a default location is created in the enduro_storage.location table.

However, in other environments that location needs to be created manually in the DB.

Describe the solution you'd like

Just an idea to investigate and make sure it's feasible for production environments.

I'd like a way to indicate an initial data file/folder that's read by Enduro and makes sure that data is added to the persistence layer in an initial installation.

Describe alternatives you've considered

  • Data migrations (non configurable)
  • Load through application config (similar approach but not as versatile)

Additional context

Some examples I recently came up with:

  • SFTPGo allows loading initial users, admins, etc. with a JSON file and an environment variable (SFTPGO_LOADDATA_FROM) (I used it in this Gist to connect Enduro and AM locally).
  • Keycloak allows to configure a realm, clients, users, etc. with a similar JSON file located on an specific path and a flag in the start command, --import-realm (among other options).
@jraddaoui jraddaoui added this to Enduro Jun 5, 2024
@jraddaoui jraddaoui moved this to 🛠 Refining in Enduro Jun 5, 2024
@sallain sallain moved this from 🛠 Refining to 📋 Blocked/Needs discussion in Enduro Jun 5, 2024
@sallain sallain moved this from 📋 Blocked/Needs discussion to 🛠 Refining in Enduro Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🛠 Refining
Development

No branches or pull requests

1 participant