
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
This Rails Engine adds the ability to search over different attributes of Ruby on Rails routes within an application.
For example, an internal (or very permissive external) API can now expose a single page that will answer simple questions like: "What was the HTTP verb for the /users/clear_password
route?" or "Does a v2 or v3 version for this route exist?".
In your Gemfile
source 'https://rubygems.org'
gem 'passages'
bundle install
By default, the Passages
Engine must be mounted in your routes.rb
file.
Example:
routes.rb
Rails.application.routes.draw do
mount Passages::Engine, at: '/passages'
end
Alternatively, an initializer can be created that will allow the Passages
Engine to mount itself.
Create a new file: initializers/passages.rb
and add the following:
Passages.configure do |config|
config.automount = true
end
With the Engine mounted at /passages
, the rendered page will display a search box and list of all known routes within the application.
Rails 5 apps should use version 2.0 of this gem, everyone below should use 1.5.2
Since there are no environment dependent checks, the /passages
page uses configurable http basic authentication.
To set a username
and password
in the Passages
Engine, add an ENV
variable for each value.
ENV['passages_username']
should be the desired username
and ENV['passages_password']
should be the desired password
By default these values are:
username: username
password: password
ENV
variables can prefix a Ruby server command from the command line interface, set with a helper .ENV
file for systems like foreman
or set through a web interface on platforms like heroku
.
To disable authentication, create or add to the initializers/passages.rb
file:
Passages.configure do |config|
config.no_auth = true
end
Please feel free to fork and contribute your own changes to the Passages project. Single commits are preferred with a description of why the contribution is useful.
FAQs
Unknown package
We found that passages 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.