![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Simple signed URL generator for Google Cloud Storage.
gem install gcs-signer
If you already configured GOOGLE_APPLICATION_CREDENTIALS
for google-cloud-ruby gem, just
signer = GcsSigner.new
You can also set GOOGLE_CLOUD_KEYFILE_JSON
environment varialble to the content of service-account.json.
puts ENV["GOOGLE_CLOUD_KEYFILE_JSON"]
# => { "type": "service_account", ...
signer = GcsSigner.new
or you can give path of the service account file, or contents of it without using environment variables.
signer = GcsSigner.new path: "/home/leo/path/to/service_account.json"
signer = GcsSigner.new keyfile_json: '{ "type": "service_account", ...'
#sign_url
to generate signed URL.
# The signed URL is valid for 5 minutes by default.
signer.sign_url "bucket-name", "path/to/object"
# You can specify timestamps or how many seconds the signed URL is valid for.
signer.sign_url "bucket-name", "object-name",
expires: Time.new(2016, 12, 26, 14, 31, 48)
signer.sign_url "bucket-name", "object_name", valid_for: 600
# If you use AcriveSupport in your project, you can use some sugar like:
signer.sign_url "bucket", "object", valid_for: 45.minutes
signer.sign_url "bucket", "object", expires_at: 5.minutes.from_now
# You can set response_content_disposition and response_content_type to change response headers.
signer.sign_url "bucket", "object", response_content_type: "video/mp4"
signer.sign_url "bucket", "object", response_content_disposition: "attachment; filename=video.mp4"
# You can use V4 signing if you prefer longer URL
signer.sign_url "bucket", "object", version: :v4
gcs-signer is distributed under the MIT License.
FAQs
Unknown package
We found that gcs-signer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.