Skip to content
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

Add support for Oracle OCI Buckets #4876

Merged
merged 2 commits into from
Sep 5, 2022

Conversation

rodrigoberriel
Copy link
Contributor

@rodrigoberriel rodrigoberriel commented Aug 29, 2022

Currently, CVAT only does not support Oracle OCI Buckets because of the lenght limit of the access and secret keys, as discussed in #4783. This simple PR increases the limit of the access and secret keys to the current lenghts of the Oracle OCI keys.

Motivation and context

Closes #4783.

Related: #4582, #4584.

How has this been tested?

I updated the CVAT locally and checked that I could successfully add and use Oracle OCI Buckets. We have been using Oracle OCI Buckets in CVAT for weeks now.

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@nmanovic
Copy link
Contributor

nmanovic commented Sep 5, 2022

@rodrigoberriel , thanks for the contribution! @Marishka17 , do you see any problems with PR? For me it looks fine.

Copy link
Contributor

@Marishka17 Marishka17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rodrigoberriel, Hi, thanks for the contribution!
@nmanovic, I don't really like this solution, because every time this problem occurs with a new provider with AWS S3 compatible API, it will be necessary to update these limits. But for now, let's keep it like that.

@nmanovic nmanovic merged commit a824196 into cvat-ai:develop Sep 5, 2022
@nmanovic nmanovic mentioned this pull request Sep 12, 2022
@rodrigoberriel rodrigoberriel deleted the support-oci-buckets branch January 11, 2023 19:24
@avinash31d
Copy link

Hi @rodrigoberriel, Can you help me in using OCI cloud storage bucket in cvat as a storage provider, I am not sure which option to choose and what is the exact process to link oci storage. I Also tried to find any documentation for the same but no luck.

Can you provide an example?

Screenshot 2023-12-15 at 8 57 17 AM

Thanks

@rodrigoberriel
Copy link
Contributor Author

@avinash31d OCI, like many others, offers S3-compatible endpoints for their buckets. Therefore, you just have to

  • select "AWS S3" as Provider;
  • fill in the "Bucket name";
  • select the "Key id and secret access key pair" as "Authorization type" and fill in the credentials and, finally;
  • add the "Endpoint URL" given by OCI, which follows this structure: {bucketnamespace}.compat.objectstorage.{region}.oraclecloud.com.
  • IIRC, providing the "Region" in the form is optional, but you can do that too.

That's it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Oracle OCI Buckets
4 participants