trustification / trustify

Apache License 2.0
8 stars 15 forks source link

Something apparently is working #342

Closed helio-frota closed 2 months ago

helio-frota commented 2 months ago

➜ trustify git:(main) cargo run --bin trustd --features garage-door

when going to http://localhost:8080/ I'm already logged-in.

Maybe good to update the readme with the correct command ?

➜  trustify git:(main) cargo run --bin trustd --features garage-door
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.34s
     Running `target/debug/trustd`
RUST_LOG is unset, using default: 'info,actix_web_prom=error'
2024-05-29T17:00:35.360536Z  WARN trustd::db: Setting up managed DB; not suitable for production use!
2024-05-29T17:00:35.468418Z  INFO trustd::db: PostgreSQL installed in "/home/heliofrota/Desktop/tc/trustify/.trustify/postgres"
2024-05-29T17:00:35.468531Z  INFO trustd::db: Running on port 36433
2024-05-29T17:00:35.489204Z  INFO trustify_common::db: connect to postgres://postgres:trustify@localhost:36433/trustify
2024-05-29T17:00:35.578580Z  INFO migrate: sqlx::postgres::notice: relation "seaql_migrations" already exists, skipping self=Database { db: SqlxPostgresPoolConnection }
2024-05-29T17:00:35.578658Z  INFO migrate: sea_orm_migration::migrator: Applying all pending migrations self=Database { db: SqlxPostgresPoolConnection }
2024-05-29T17:00:35.578889Z  INFO migrate: sqlx::postgres::notice: relation "seaql_migrations" already exists, skipping self=Database { db: SqlxPostgresPoolConnection }
2024-05-29T17:00:35.579125Z  INFO migrate: sqlx::postgres::notice: relation "seaql_migrations" already exists, skipping self=Database { db: SqlxPostgresPoolConnection }
2024-05-29T17:00:35.579391Z  INFO migrate: sqlx::postgres::notice: relation "seaql_migrations" already exists, skipping self=Database { db: SqlxPostgresPoolConnection }
2024-05-29T17:00:35.580978Z  INFO migrate: sea_orm_migration::migrator: No pending migrations self=Database { db: SqlxPostgresPoolConnection }
2024-05-29T17:00:35.581348Z  INFO trustify_common::db: connect to postgres://postgres:trustify@localhost:36433/trustify
2024-05-29T17:00:35.663486Z  WARN trustify_server::embedded_oidc: Running embedded OIDC server. This is not secure and should only be used for demos!
2024-05-29T17:00:35.663630Z  INFO trustify_server::embedded_oidc: Running server loop
2024-05-29T17:00:35.663764Z  INFO garage_door::server: Listening on: http://[::1]:8090/realms
2024-05-29T17:00:35.663802Z  INFO garage_door::server::state: Issuers:
2024-05-29T17:00:35.663826Z  INFO garage_door::server::state:   trustify
2024-05-29T17:00:35.663854Z  INFO garage_door::server::state:   Clients:
2024-05-29T17:00:35.663883Z  INFO garage_door::server::state:     frontend = Public { id: "frontend", redirect_urls: [Exact { url: "http://localhost", ignore_localhost_port: true }], default_scope: "openid read:document create:document delete:document update:document" }
2024-05-29T17:00:35.663912Z  INFO garage_door::server::state:     walker = Confidential { id: "walker", secret: ***, default_scope: "openid read:document create:document delete:document update:document" }
2024-05-29T17:00:35.663930Z  INFO garage_door::server::state:     testing-user = Confidential { id: "testing-user", secret: ***, default_scope: "openid read:document create:document delete:document update:document" }
2024-05-29T17:00:35.663946Z  INFO garage_door::server::state:     testing-manager = Confidential { id: "testing-manager", secret: ***, default_scope: "openid read:document create:document delete:document update:document" }
2024-05-29T17:00:41.845331Z  INFO actix_server::builder: starting 12 workers
2024-05-29T17:00:41.845349Z  INFO trustify_server::embedded_oidc: Embedded OIDC server ready on: http://[::1]:8090/realms
2024-05-29T17:00:41.845393Z  INFO actix_server::server: Tokio runtime found; starting in existing Tokio runtime
2024-05-29T17:00:41.845417Z  INFO trustify_common::db: connect to postgres://postgres:trustify@localhost:36433/trustify
2024-05-29T17:00:41.927575Z  INFO trustify_infrastructure::infra: Infrastructure endpoint is disabled
2024-05-29T17:00:41.927724Z  INFO trustify_infrastructure::health::checks::local: received shutdown signal
2024-05-29T17:00:41.927780Z  INFO trustify_infrastructure::health::checks::local: check future returned
2024-05-29T17:00:41.927978Z  INFO trustify_infrastructure::app::http: JSON limit: 256.0 kiB
2024-05-29T17:00:41.928005Z  INFO trustify_infrastructure::app::http: Payload limit: 2.0 MiB
2024-05-29T17:00:41.928151Z  INFO trustify_infrastructure::app::http: Binding to: [::1]:8080
2024-05-29T17:00:41.928224Z  INFO actix_server::builder: starting 12 workers
2024-05-29T17:00:41.928261Z  INFO actix_server::server: Tokio runtime found; starting in existing Tokio runtime

related to: https://github.com/trustification/scale-testing/issues/5

helio-frota commented 2 months ago

Maybe good to update the readme with the correct command ?

oh that is already documented there :+1: https://github.com/trustification/trustify/blob/main/docs/oidc.md#embedded-oidc-server

helio-frota commented 2 months ago

I'll close this ... maybe probably related to https://github.com/trustification/trustify-ui/issues/37 thanks