Skip to content

Permissions issue #36

Description

@maxhild

The env:init-conf command needs acces to the LX_MAINTENANCE_PASSWORD. Somewhere in the code of endo-api a permission seems to be set where init-conf can access this file.

Please note: env:init-conf is located in devenv/tasks/env.nix in lx-annotate and made available through the devenv folders default.nix.

The path seems to be built from the $homeDir env variable. Do i need to set it manually?

Is this path provided via lx-vault?

Please confirm if this is necessary for setting up postgres in lx-annotate.

Error trace:

--- env:init-conf failed with error: Task exited with status: exit status: 1
--- env:init-conf stdout:
0000.06: Loading database configuration from template: /home/admin/dev/lx-annotate/conf_template/db.yaml
--- env:init-conf stderr:
0000.06: Configuration error: Database configuration validation failed: [Errno 13] Permission denied: '/etc/secrets/vault/SCRT_local_password_maintenance_password'

to recreate:

devenv shell devenv tasks run env:init-conf

devenv shell devenv tasks run env:fetch-db-pwd-file

-> Same task works in endo-api and doesnt in lx-annotate

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions