
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
active_sms-backend-aws
Advanced tools
ActiveSMS backend to send sms using Amazon Web Services. At this point gem does not support SenderID. If you know how to specify it - open issue or make pull request, all contributions are welcome!
Before you can use this gem, you should get tokens from amazon web services (AWS). Here are steps to achieve that:
Go to AWS registration page
After you registered and logged in, go to IAM users
Click "Create new users", enter username of your wish (in my case testuser
) and then click "Create".
You should see similar picture:
save access key id and secret acces key somwhere.
This is simple example on how to get them and make things work quick. In reality AWS support various access options, you may read them here and configure it more strict or closer to your needs.
Add this line to your application's Gemfile:
gem "active_sms-backend-aws"
Then somewhere in your initialization code:
require "active_sms"
ActiveSMS.configure do |c|
c.register_backend(:my_main_backend,
ActiveSMS::Backend::AWS,
access_key: ENV["AWS_ACCESS_KEY"],
secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"],
region: ENV["AWS_REGION"] # Optional, default will be "us-east-1"
)
c.default_backend = :my_main_backend
end
This is an simple example of configuration.
Before running application you should specify
AWS_ACCESS_KEY
, AWS_SECRET_ACCESS_KEY
and AWS_REGION
environment variables.
You may change initializer code to suit your needs more,
just make sure you never store credentials commited to your codebase.
It should be stored separately from application.
Now, whenever you need to send SMS, just do:
# Will immediately send sms
ActiveSMS.send_sms("+10000000000", "My sms text")
For more advanced usage please go to ActiveSMS documentation
Bug reports and pull requests are welcome on GitHub at https://github.com/Fedcomp/active_sms-backend-aws.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that active_sms-backend-aws 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.