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
Currently, I see our UCSingleCatalog use a CredentialTestFileSystem which built on top of the RawLocalFileSystem to mock the S3AFileSystem, AbsFileSystem, and GCPFileSystem.
I think it's reasonable for the unit test, but it actually not reflect the real s3/gcp/azure object storage. I think we can add a real integration tests for that. It's not necessary to run for every PR, but it's good to run those test in a real s3/gcp/azure object storage, for the release.
Then we can detect the the potential issue before the release. Open an issue here, will try to initial a PR for that when I have the time to do it.
Another potential risks is: for the IT test, seems like the OSS UC server will issue an aws credentials without any expiration time. maybe I need to investigate more about this.
After the investigation, so the problem is the OSS UC server will return the static accessKey, secretKey, sessionToken without expiration time.
I think this is an issue that we did not aware before when we did the locally running integration tests, since we use the hadoop-aws with 3.4.0 version by default.
And for our integration-tests we actually use hadoop 3.3.6 version, which is still using the old version of the aws sdk.
We can see here, for the hadoop 3.4.0, we actually are using the CredentialsProvider from the software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
While for the hadoop 3.3.6, we actually are using the CredentialsProvider from the com.amazonaws.auth.AWSCredentialsProvider, which is different with the new version's software.amazon.awssdk.auth.credentials.AwsCredentialsProvider.
Then for our AwsVendedTokenProvider, we may need to support both of the hadoop version, which means we need to implement both the credentials providers.
And the log says, the job started at 2025/10/30 21:43:06, and the it failed at 2025/10/30 22:43:21, which was exactly 1 hour, correctly matching the credential expiration time.
Activity
openinx commentedon Oct 14, 2025
Located a pontential risk in this issue, when I tried to pass the IT tests: #1112
openinx commentedon Oct 14, 2025
Another potential risks is: for the IT test, seems like the OSS UC server will issue an aws credentials without any expiration time. maybe I need to investigate more about this.
After the investigation, so the problem is the OSS UC server will return the static
accessKey,secretKey,sessionTokenwithout expiration time.unitycatalog/server/src/main/java/io/unitycatalog/server/service/credential/aws/AwsCredentialVendor.java
Lines 32 to 39 in a7ecc12
So I think we also need to handle the static
accessKey,secretKey,sessionTokeninfo in the credentials provider..Integrate the AwsVendedTokenProvider into the UCSingleCatalog (#1110)
Integrate the AwsVendedTokenProvider into the UCSingleCatalog (unityc…
[-]Add the s3/gcp/zure integrationt test[/-][+]Add the s3 integrationt test[/+]openinx commentedon Oct 30, 2025
Let's just make this issue to be focused on aws s3.
openinx commentedon Oct 30, 2025
I just use this command to test the integration test #1119
openinx commentedon Oct 30, 2025
When I did the integration tests, I encountered this issue:
I think this is an issue that we did not aware before when we did the locally running integration tests, since we use the
hadoop-awswith3.4.0version by default.And for our integration-tests we actually use hadoop 3.3.6 version, which is still using the old version of the aws sdk.
We can see here, for the
hadoop 3.4.0, we actually are using theCredentialsProviderfrom thesoftware.amazon.awssdk.auth.credentials.AwsCredentialsProviderhttps://github.com/apache/hadoop/blob/branch-3.4.0/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/auth/CredentialProviderListFactory.java#L36
While for the
hadoop 3.3.6, we actually are using theCredentialsProviderfrom thecom.amazonaws.auth.AWSCredentialsProvider, which is different with the new version'ssoftware.amazon.awssdk.auth.credentials.AwsCredentialsProvider.https://github.com/apache/hadoop/blob/rel/release-3.3.6/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AUtils.java#L27
Then for our
AwsVendedTokenProvider, we may need to support both of the hadoop version, which means we need to implement both the credentials providers.openinx commentedon Oct 31, 2025
Also I tried to run this #1119 with
renewalCredential.enabled=false, to convince it will fail the job once the expiratiom time is arrived.The full command to test the job is here:
And the log says, the job started at
2025/10/30 21:43:06, and the it failed at2025/10/30 22:43:21, which was exactly 1 hour, correctly matching the credential expiration time.The full stack trace is here:
This correctly verified that our credential renewal really seamlessly working pretty good without breaking user's spark job.
Add real production credential renwal integration test. (#1119)
openinx commentedon Nov 6, 2025
Closed via #1119
[0.3] Integrate the AwsVendedTokenProvider into the UCSingleCatalog (u…
[0.3] Integrate the AwsVendedTokenProvider into the UCSingleCatalog (#…
[0.3] Add real production credential renwal integration test. (unityc…