Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Metronome - the Ruby gem for the Metronome API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This SDK is automatically generated by the OpenAPI Generator project:
gem install ./metronome-1.0.0.gem
or add this to your Gemfile:
gem 'metronome', '~> 1.0.0'
To build the Ruby code into a gem:
gem build metronome.gemspec
Then either install the gem locally:
(for development, run gem install --dev ./metronome-1.0.0.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to a Gemfile for a project that depends on this gem:
gem 'metronome', '~> 1.0.0'
The Ruby gem is hosted at a git repository: https://github.com/Private-Data-Services/metronome-client-libs You can add the following in your Gemfile:
gem 'metronome', :git => 'https://github.com/Private-Data-Services/metronome-client-libs/tree/main/ruby'
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Examples are available in the ruby client examples folder
Please follow the installation procedure and then run the following code:
# Load the gem
require 'metronome'
# Setup authorization
Metronome.configure do |config|
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
config.customer_id = "YOUR-CUSTOMER-ID" # Only characters [a-z0-9\-] allowed. You invent this value to identify your organisation.
config.region = "eu-north-1" # Select from one of our available regions. Mail info@privatedataservices.com to request a new region.
end
api_instance = Metronome::AccessManagementApi.new
api_key = 'api_key_example' # String |
begin
result = api_instance.get_api_key(api_key)
p result
rescue Metronome::ApiError => e
puts "Exception when calling AccessManagementApi->get_api_key: #{e}"
end
All URIs are relative to https://YOUR-CUSTOMER-ID.api.REGION.privatedataservices.com You should only need to use or know this value when you use the REST API directly. The server name is handled by this client automatically.
Class | Method | HTTP request | Description |
---|---|---|---|
Metronome::AccessManagementApi | get_api_key | GET /v1/metronome/api-keys/{api-key} | |
Metronome::AccessManagementApi | get_many_api_keys | GET /v1/metronome/api-keys | |
Metronome::AccessManagementApi | put_api_key | PUT /v1/metronome/api-keys/{api-key} | |
Metronome::AccessManagementApi | sign_up | PUT /v1/metronome/sign-up | |
Metronome::DataExpiryApi | get_expiry_notices | GET /v1/metronome/expiry-notices/{date} | |
Metronome::ItemAccessApi | expire_item | DELETE /v1/metronome/items/{item-id} | |
Metronome::ItemAccessApi | expire_sub_item | DELETE /v1/metronome/items/{item-id}/{sub-item-id} | |
Metronome::ItemAccessApi | get_item_log | GET /v1/metronome/items/{item-id}/log | |
Metronome::ItemAccessApi | get_item_metadata | GET /v1/metronome/items/{item-id} | |
Metronome::ItemAccessApi | get_item_policies | GET /v1/metronome/items/{item-id}/policies | |
Metronome::ItemAccessApi | get_sub_item_log | GET /v1/metronome/items/{item-id}/{sub-item-id}/log | |
Metronome::ItemAccessApi | get_sub_item_metadata | GET /v1/metronome/items/{item-id}/{sub-item-id} | |
Metronome::ItemAccessApi | get_sub_item_policies | GET /v1/metronome/items/{item-id}/{sub-item-id}/policies | |
Metronome::PolicyManagementApi | get_many_policies | GET /v1/metronome/policies | |
Metronome::PolicyManagementApi | get_policy | GET /v1/metronome/policies/{policy-id} | |
Metronome::PolicyManagementApi | get_policy_log | GET /v1/metronome/policies/{policy-id}/log | |
Metronome::PolicyManagementApi | get_policy_members | GET /v1/metronome/policies/{policy-id}/members | |
Metronome::PolicyManagementApi | put_policy | PUT /v1/metronome/policies/{policy-id} | |
Metronome::TelemetryApi | post_telemetry | POST /v1/metronome/telemetry |
API key must always be set during configuration except for the AccessManagementApi->sign_up call.
FAQs
Unknown package
We found that pds-metronome demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.