
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.
Ruby generated GRPC client for Aserto Authorizer
Add this line to your application's Gemfile:
gem 'aserto-authorizer'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install aserto-authorizer
require 'aserto/authorizer'
query_request = Aserto::Authorizer::V2::QueryRequest.new(
{
query: 'x=data',
policy_instance: Aserto::Authorizer::V2::Api::PolicyInstance.new(
{ name: 'my-policy' }
)
}
)
client = Aserto::Authorizer::V2::Authorizer::Stub.new(
"authorizer.eng.aserto.com:8443",
GRPC::Core::ChannelCredentials.new
)
begin
resp = client.query(
query_request,
{
metadata: {
"authorization": 'my-bearer-token',
}
}
)
# use response
puts resp.inspect
rescue GRPC::BadStatus => e
# handle error
puts e.inspect
end
Prerequisites:
- go >= 1.17 to generate Ruby code
- Ruby >= 2.7.0 to run the code
After checking out the repo, run mage generate
to generate Ruby code.
Run bundle install
to install dependencies. Then, run bundle exec rspec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
Bug reports and pull requests are welcome on GitHub at https://github.com/aserto-dev/ruby-authorizer. This project is intended to be a safe, welcoming space for collaboration.
The gem is available as open source under the terms of the Apache-2.0 License.
FAQs
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.