You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
I need to provide my own oidc instance like Keycloak to properly test things.
I can also provide my own database
Start the server pointing to my own Keycloak and Postgres instance and be able to make the Importers to run.
Here is the problem:
cargo run --bin trustd will not point to my own Keycloak + Postgresql
cargo run --bin trustd api --authentication-client-id myclient --authentication-issuer-url http://myoidcserver ... etc. etc will start the server but unable to run the importers
cargo 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.
On a similar topic: What is --devmode? do we need it?
What is the exact difference between cargo run --bin trustd and cargo 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 while cargo run --bin trustd api --devmode does not allow the importers to run
The text was updated successfully, but these errors were encountered:
Somehow partially might be related to changes done at #1063
Maybe "wholly" rather than "partially". :)
Those changes resulted in a new subcommand, importer, that you now must run in addition to the api subcommand. PM mode runs both of them.
You'll need to fire up the importer with the same db settings you pass to api, e.g.
cargo run --bin trustd importer --working-dir .trustify/importer --db-port 44444
On a similar topic: What is --devmode? do we need it?
Good question. I regret that we have both "PM mode" and "dev mode". I think it's more confusing than helpful.
What is the exact difference between cargo run --bin trustd and cargo run --bin trustd api --devmode ?
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 --embedded-oidc and b) running cargo run --bin trustd db migrate.
I think we can do away with "dev mode" and remove some confusion.
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: