enable and document using manage.py in online environment #260
No reviewers
Labels
No labels
0 points
0.5 points
1 point
13 points
2 points
21 points
3 points
34 points
5 points
55 points
8 points
ambition
application-offering
ambition
configure-applications
ambition
front-end
ambition/install-applications
ambition
security
ambition
switch-host
ambition
update-applications
ambition
user-management
api service
blocked
component: fediversity panel
component: nixops4
documentation
estimation high: >3d
estimation low: <2h
estimation mid: <8h
infinite points
productisation
project-management
question
role: application developer
role: application operator
role: hosting provider
role: maintainer
security
technical debt
testing
type unclear
type: bug
type: deliverable
type: key result
type: objective
type: task
type: user story
user experience
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
fediversity/fediversity!260
Loading…
Reference in a new issue
No description provided.
Delete branch "kiara/fediversity:online-manage-py"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
allows e.g. making users from cli
The existing code should work; what problem is this trying to solve?
@fricklerhandwerk try it in the demo env - each of the currently mandatory env vars will error as they are set only in the service, not in external cli invocations
That would be very surprising, this is the code where it's accounted for:
https://git.fediversity.eu/Fediversity/Fediversity/src/branch/main/panel/nix/configuration.nix#L45
And the executable is added to the environment here:
https://git.fediversity.eu/Fediversity/Fediversity/src/branch/main/panel/nix/configuration.nix#L139
It's possible that the command is slightly broken because, as noted early on, all of this tends to be janky if not set just right. But ripping out a random part of that system and trying to run manual invocations is not the right approach.
I'll test and debug it later today.
i see, thanks for your feedback.
i now understand the
managecommand is exposed under the root user, while the environment could say be borrowed from the service bysystemd-run.that being said, the credential currently is exposed only to the service, which our
settings.pycurrently requires while manual invocations of themanagecommand would typically be run from a shell, rather than from our service.62cdb566e634fca24bb134fca24bb1a858a05d20a858a05d2072805263a872805263a8to4cdc2702e0closing as this should be obsolete once tests pass
Pull request closed