Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
embulk-input-google_spreadsheets
Advanced tools
Embulk input plugin to load records from Google Spreadsheets.
name | type | requirement | default | description |
---|---|---|---|---|
auth_method | string | optional | authorized_user | service_account , authorized_user , compute_engine , or application_default |
json_keyfile | string | optional | keyfile path or content | |
spreadsheets_url | string | required | ||
worksheet_title | string | required | worksheet title | |
start_column | integer | optional | 1 | |
start_row | integer | optional | 1 | |
end_row | integer | optional | -1 | -1 means loading records until an empty record appears. |
max_fetch_rows | integer | optional | 10000 | Load data from a worksheet for each numerical value specified by this option. |
null_string | string | optional | '' | Replace this value to NULL |
value_render_option | string | optional | 'FORMATTED_VALUE' | 'FORMATTED_VALUE' , 'UNFORMATTED_VALUE' , 'FORMULA' are available. See the value_render_option document. |
stop_on_invalid_record | boolean | optional | true | |
default_timestamp_format | string | optional | '%Y-%m-%d %H:%M:%S.%N %z' | |
default_timezone | string | optional | 'UTC' | |
default_typecast | string | optional | 'strict' | |
columns | array | required |
if auth_method
is compute_engine
or application_default
, this option is not required.
if auth_method
is authorized_user
, this plugin supposes the format is the below.
{
"client_id":"xxxxxxxxxxx.apps.googleusercontent.com",
"client_secret":"xxxxxxxxxxx",
"refresh_token":"xxxxxxxxxxx"
}
if auth_method
is service_account
, set the service account credential json file path.
'%Y-%m-%d %H:%M:%S.%N %z'
strict
, loose
, minimal
(default: strict
)
strict
: raise TypecastError if typecasting is failed.loose
: set NULL
value if typecasting is failed.minimal
: typecast minimally.You may use example/setup_authorized_user_credentials.rb to prepare OAuth token.
Go to GCP console > API Manager > Credentials > Create 'OAuth Client ID'. Get the client id and client secret.
Run setup_authorized_user_credentials.rb
to get refresh_token
.
bundle --path vendor/bundle
bundle exec ruby example/setup_authorized_user_credentials.rb
example/setup_authorized_user_credentials.rb
if you don't have credentials, then$ embulk bundle install --path vendor/bundle
$ embulk run -b . -l trace example/config_authorized_user.yml
$ bundle exec rake test
To run tests which actually connects to Google Spreadsheets such as test/test_google_spreadsheets_client.rb
,
prepare a json_keyfile at example/service_account_credentials.json
, then
$ bundle exec ruby test/test_google_spreadsheets_client.rb
$ bundle exec ruby test/test_example.rb
Fix gemspec, then
$ bundle exec rake release
FAQs
Unknown package
We found that embulk-input-google_spreadsheets demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.