
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
activerecord_hoarder
Advanced tools
hoard records
before performing 1.2
and 1.3
the ActiverecordHoarder::Storage
needs to be configured with
storage: :aws_s3
- only storage currently implementedstorage_options: {...}
with s3 credentials, connection details and default permissionsaccess_key_id
required - amazon credentialacl
required - amazon canned ACL (private, public-read, ...)*bucket
required - amazon connection detailbucket_sub_dir
optional - amazon key prefixregion
required - amazon connection detailsecret_access_key
required - amazon credentialclass ExampleModel < ActiveRecord::Base
acts_as_hoarder
end
from console:
ExampleModel.hoard
will create S3 entries with keys: <bucket_sub_dir>/<table_name = example_models>/<year>/<month>/<year>-<month>-<day>.json
and json formatted content
from console:
ExampleModel.restore_archive_records(Date.new(<Y>,<m>,<d>))
Make a clone. Make a branch. Install dependencies.
Create config file from template (cp config/dbspec.yml.template config/dbspec.yml
). Change database from postgresql
to sqlite3
and database name from activerecord_hoarder
to <as_desired>.sqlite3
.
Create config file from template (cp config/activerecord_hoarder.yml.template config/activerecord_hoarder.yml
). Add your S3 credentials access_key_id
and secret_access_key
for target bucket bucket
. Change region
if necessary. If you want, change acl
and add bucket_sub_dir
.
bundler exec bin/console
Convenience functionality
require_relative "example/schema"
for creating an example table examples
require_relative "example/example"
for an example archivable model Example
require_relative "example/fixture"
for a factory method create_examples(count, start: 0, deleted: true)
for creating examplesCreate config file from template (cp config/dbspec_rspec.yml.template config/dbspec_rspec.yml
). Modify settings if you want.
bundler exec rspec spec
FAQs
Unknown package
We found that activerecord_hoarder 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.