-
Notifications
You must be signed in to change notification settings - Fork 21
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
Unable to start Trustify (with importers) while using my own DB + OIDC provider #1126
Comments
Maybe "wholly" rather than "partially". :) Those changes resulted in a new subcommand, You'll need to fire up the importer with the same db settings you pass to
Good question. I regret that we have both "PM mode" and "dev mode". I think it's more confusing than helpful.
The first command is "PM mode". I believe the second will run an api server with an embedded OIDC instance and run migrations against the configured database. So essentially a shortcut for 1) passing I think we can do away with "dev mode" and remove some confusion. |
The idea of running the I agree that there's a lot of room for improvement. But I'd prefer not to do any more rash "doesn't work for me" changes. People use things differently, and I don't expect that we get an optimal I think "PM mode" is important. As well as having control over individual features (as that's what we need to deployments). If we can have a |
@carlosthe19916 Did you try starting |
I confirm it works |
Somehow partially might be related to changes done at #1063
cargo run --bin trustd
will start the server + local postgresql + embedded oidc + allow the importers to run. Excellent, everything works here!What I need to develop things locally as a client
Here is the problem:
cargo run --bin trustd
will not point to my own Keycloak + Postgresqlcargo run --bin trustd api --authentication-client-id myclient --authentication-issuer-url http://myoidcserver ... etc. etc
will start the server but unable to run the importerscargo run --bin trustd api --devmode --authentication-client-id myclient --authentication-issuer-url http://myoidcserver ... etc. etc ...
starts the server but is unable to run importers.So how to start the server + allow importers to run + point to my own db/oidc instance? with the current status I suspect the only way is to orchestrate things like in the Helm Chart which is way too much for a developer to do. Seems like if I want the importers to run I am forced to accept that I can not provide my own oidc neither my own database. But I can definitely be wrong.
trustify/trustd/src/main.rs
Lines 62 to 88 in ff1e5a8
On a similar topic: What is
--devmode
? do we need it?What is the exact difference between
cargo run --bin trustd
andcargo run --bin trustd api --devmode
?it is confusing to have 2 things that apparently would serve the same purpose but clearly they don't because
cargo run --bin trustd
allows to run importers whilecargo run --bin trustd api --devmode
does not allow the importers to runThe text was updated successfully, but these errors were encountered: