-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat: point the integs at a remote trustification server #424
Conversation
Signed-off-by: Jim Crossley <jim@crossleys.org>
Better to see either sbom, vex, or spog in the names, I think Signed-off-by: Jim Crossley <jim@crossleys.org>
Fixes trustification#401 Setting the TRUST_URL env var to a remote trustification server triggers the integs to be run against it. If it's set, other env vars will be required: TRUST_USER_ID -- the client id of the user TRUST_MANAGER_ID -- the client id of the manager TRUST_SECRET -- the secret is assumed to be the same for user & mgr If KAFKA_BOOTSTRAP_SERVERS is set, its value will be used to configure the event bus. Otherwise, SQS is assumed and valid AWS credentials will be required. Signed-off-by: Jim Crossley <jim@crossleys.org>
🚀 Deployed Preview: https://trustification-spog-pr-424-preview.surge.sh ✨ |
impl Config { | ||
pub async fn new() -> Self { | ||
let _ = env_logger::try_init(); | ||
match std::env::var("TRUST_URL") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jcrossley3 This env variable is configured on .env or local?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .env
file is only used by the compose scripts. TRUST_URL
needs to be set before running the integs with cargo, e.g.
TRUST_URL=http://localhost:8084 cargo test -p integration-tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the information
ref trustification#401 & trustification#424 Signed-off-by: Jim Crossley <jim@crossleys.org>
Fixes #401
Setting the
TRUST_URL
env var to a remote trustification server triggers the integs to be run against it.If it's set, other env vars will be required:
TRUST_USER_ID
-- the client id of the userTRUST_MANAGER_ID
-- the client id of the managerTRUST_SECRET
-- the secret is assumed to be the same for user & mgrIf
KAFKA_BOOTSTRAP_SERVERS
is set, its value will be used to configure the event bus. Otherwise, SQS is assumed and valid AWS credentials will be required.