Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

revbits_pam_cicd

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

revbits_pam_cicd

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Revbits PAM

This gem give you programmatic access to securely fetch secrets form RevBits PAM.

Installation

Add this line to your application's Gemfile:

gem 'revbits_pam'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install revbits_pam

Usage

Configuration

RevBits PAM supports the following configurations

  • Basic Configuration
  • ENV Configuration
  • Block Configuration
Basic Configuration

The simplest configuration is to supply required attributes to configuration object as follows:

# Authentication Type (Optional), default (and only available option for now) is :pam
RevbitsPamCicd.configuration.auth_type = :pam

# 'appliance_url' required
RevbitsPamCicd.configuration.appliance_url = "https://your-appliance-url.com"

# 'api_key' required
RevbitsPamCicd.configuration.api_key = "YourRevBitsPamApiKey"
ENV Configuration

RevBits PAM will automatically fetch the configuration if the following ENV variables are set.

  • REVBITS_AUTH_TYPE (Optional)
  • REVBITS_APPLIANCE_URL (Required)
  • REVBITS_API_KAY (Required)
Block Configuration

RevBits PAM also supports configuration via block as follows:

RevbitsPamCicd.configure do |c| 
  c.auth_type = :pam (Optional)
  c.appliance_url = "https://your-appliance-url.com"
  c.api_key = "YourRevBitsPamApiKey"
end

:warning: Beware of adding your credentials directly into code always use secrets or ENV to fetch them dynamically.

Example Usage

# Configuration
RevbitsPamCicd.configuration.auth_type = :pam
RevbitsPamCicd.configuration.appliance_url = "https://your-appliance-url.com"
RevbitsPamCicd.configuration.api_key = "YourRevbitsPamCicdApiKey"

# Fetching secrets form RevBits PAM
db_password = RevbitsPamCicd::API.fetch_secret('DB_PASSWORD')

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/RevBits/PAM-SDK/tree/main/revbits-secrets-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the RevbitsPamCicd project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

FAQs

Package last updated on 26 Jan 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc