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.
bridgetown-arcade-db
Advanced tools
This plugin grants Bridgetown sites (v1.2 or higher) to ArcadeDB-Databases. You can pull data from a database during a static build or during server requests (or both!). ArcadeDB is a multi-model NOSQL-Database supporting Document-, KeyStore- and Graph-Databases including standard-protocols (SQL, Redis, MongoDB, Gremlin, GraphQL). Most important: ArcadeDB supports inheritance, ArcadDB is a native object-orientated database. This fits nicely to ruby.
An automation script is planned
$ bin/bridgetown apply https://github.com/bridgetownrb/bridgetown-arcade-db (future use)
Manual setup:
Gemfile
gem 'arcadedb', git: 'https://github.com/topofocus/arcadedb"
gem 'arcade-time-graph', git: 'https://github.com/topofocus/-arcade-time-graph"
gem 'bridgetown-arcade-db' , git: 'https://github.com/topofocus/bridgetown-arcade-db"
( the gem is not released jet. so, reference to the github-repositories or clone everything an refer to their local location )
config/initializers.rb
init :ssr
init :"bridgetown-routes"
init :"bridgetown-arcade-db"
or if the DB should only referenced through deployment from static pages
only :static, :console do
init :bridgetown-arcade-db
end
arcade.yml
to the config
-dir--- #/config/arcade.yml
:environment:
:test:
dbname: test
user: root
pass: ****
:development:
dbname: playground
user: root
pass: ****
:production:
dbname: bridgetown
user: root
pass: ****
:admin:
:host: localhost # enter ip-address or name of the arcadeDB-Server
:port: 2480 #
:user: root # this is used for lowlevel Api-Access
:pass: **** #
:autoload: true # load model if a link is detected in a record
:logger: stdout # 'file' or 'stdout'
:namespace: Arcade # default namespace
model
-directory, and there an arcade
-Namespace-Directory.model/arcade/person.rb
module Arcade
class Person
attribute :name, Types::Nominal::String
attribute :surname, Types::Nominal::String.default( "".freeze )
attribute :email?, Types::Email
attribute :age?, Types::Nominal::Integer
attribute :active, Types::Nominal::Bool.default( true )
attribute :conterfeil?, Types::Nominal::Any
def self.db_init
File.read(__FILE__).gsub(/.*__END__/m, '')
end
end
end
## The code below is executed on the database after the database-type is created
## Use the output of `ModelClass.database_name` as DB type name
##
__END__
CREATE PROPERTY user.name STRING
CREATE PROPERTY user.surname STRING
CREATE PROPERTY user.email STRING
CREATE INDEX ON user ( name ) NOTUNIQUE
CREATE INDEX ON user ( name, surname, email ) UNIQUE
Api.create_database {name of the database in arcade.yml}
Arcade::Person.create_type
Arcade::Person.create name: "Hogo"
Arcade::Person.where name: 'Hugo'
The records are available in Frontmatter, components and in Bridgetown-Documents.
git clone
to your local development machine.git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that bridgetown-arcade-db 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.