-
Notifications
You must be signed in to change notification settings - Fork 18
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
Relayer url and api_key moved to the partner struct, refactoring #286
Conversation
Terraform Dev EnvironmentTerraform Format and Style 🖌
|
Terraform Feature Environment (dev-286)Terraform Initialization ⚙️
|
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.
LGTM, just a few nitpicks!
I would test this setup using Danny's frontend just to make sure the partner list gets populated correctly via terraform.
Also, maybe we should invest in PVT tests at this point. We could start by simply running a subset of the existing integration tests once terraform env is up.
integration-tests/src/containers.rs
Outdated
"audience": firebase_audience_id, | ||
}, | ||
"relayer": { | ||
"url": "http://relayer:3000", // not used |
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.
hmm, does it make sense that signer node accepts relayer url that is not actually used anywhere?
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.
Good point. Refactored. Now Leader Node accepts list of partners and Signing node accepts list of OIDC Providers.
partner.relayer.clone(), | ||
) | ||
.await | ||
.unwrap(); |
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.
We are still using this horrible hack huh 😬
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.
Yes... talked about this with Anthony, he did not wanted to allowlist our account creaor :)
partner.relayer.clone(), | ||
) | ||
.await | ||
.unwrap(); |
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.
Yes... talked about this with Anthony, he did not wanted to allowlist our account creaor :)
} | ||
} | ||
_ => return Err(anyhow::anyhow!("Invalid combination of data and path")), |
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.
this last _
case won't be necessary since we handled all the cases. best to just get rid of it
_ => return Err(anyhow::anyhow!("Invalid combination of data and path")), |
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.
Some Some is not handled.
{ | ||
Some(partner) => Ok(partner), | ||
None => Err(anyhow::anyhow!( | ||
"Failed to find relayer for given partner. Issuer: {}, Audience: {}", |
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.
I don't think we should be returning this specific error message here. Instead we should have it in the calling code, because it depends on which context we're querying the partner list. So we can just return an Option<FastAuthPartner>
for now
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.
It was like this in my initial design, but looked clunky: ebb3e1f
Co-authored-by: Phuong Nguyen <[email protected]>
Terraform Feature Environment Destroy (dev-286)Terraform Initialization ⚙️
|
No description provided.