-
Notifications
You must be signed in to change notification settings - Fork 173
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
RUST-1314 Support on-demand AWS credentials for in-use encryption #831
RUST-1314 Support on-demand AWS credentials for in-use encryption #831
Conversation
pub(crate) fn access_key(&self) -> &str { | ||
&self.access_key | ||
} | ||
|
||
pub(crate) fn secret_key(&self) -> &str { | ||
&self.secret_key | ||
} | ||
|
||
pub(crate) fn session_token(&self) -> Option<&str> { | ||
self.session_token.as_deref() | ||
} |
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.
nit: could we just make the fields pub(crate)
instead?
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'd rather preserve the invariant that this struct can't be directly constructed or mutated.
src/test/csfle.rs
Outdated
}) | ||
.run() | ||
.await; | ||
assert!(result.is_err()); |
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.
is there a more specific error case/variant we can assert on here?
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 call, updated this to check that it's an auth error.
RUST-1314
Happily, this turned out to be more straightforward than expected.