Creating mini PHP SDK to sign Oracle Cloud Infrastructure API requests
Idea to create such library came into my mind when I wanted to start using all the free benefits that Oracle Cloud Infrastructure provides. Specifically I am talking about 10 GB of Object Storage as well as 10 TB of outgoind traffic. Its has significant differences with expensive AWS S3. Unfortunately, Oracle Cloud does not have (yet?) the SDK for the most popular programming language for developing websites. Good news is that it’s partially compatible with Amazon S3 — meaning that tools that we already have could be applied, including it’s PHP SDK.
Those who can’t wait to see the code, please welcome https://github.com/hitrov/oci-api-php-request-sign
Current tools allow us to perform almost all operations that we could imagine for creating, reading and deleting buckets and objects (files). Buckets can be public (with or without files listing possibility) or private. There’s also an option to upload files having only “secret” URL (generated through CLI or web interface — Oracle Cloud Console). In fact, this should already cover a lot of scenarios especially if you generate brute-force filenames in case you don’t want to expose files to everyone.
I was particularly interested in “sharing” files possibility — to have public links as well as to limit (“unshare”) if needed. In…