vault_plugin_secrets_scalr

package module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Vault Plugin: Scalr Secrets Backend

Tests

This is a HashiCorp Vault plugin that generates service account tokens for Scalr.

Download

Binary releases are available at https://github.com/Boostport/vault-plugin-secrets-scalr/releases.

Verify Binaries

The checksums for the binaries are signed with cosign. To verify the binaries, download the following files (where ${VERSION} is the version of the release):

  • vault-plugin-secrets-scalr_${VERSION}_checksums.txt
  • vault-plugin-secrets-scalr_${VERSION}_checksums.txt.pem
  • vault-plugin-secrets-scalr_${VERSION}_checksums.txt.sig

Then download the release binaries you need. Here, we just download the linux amd64 binary:

  • vault-plugin-secrets-scalr_${VERSION}_linux_amd64

Then run the following commands to verify the checksums and signature:

# Verify checksum signature
$ cosign verify-blob --signature vault-plugin-secrets-scalr_${VERSION}_checksums.txt.sig --certificate vault-plugin-secrets-scalr_${VERSION}_checksums.txt.pem vault-plugin-secrets-scalr_${VERSION}_checksums.txt --certificate-identity "https://github.com/Boostport/vault-plugin-secrets-scalr/.github/workflows/release.yml@refs/tags/v${VERSION}" --certificate-oidc-issuer "https://token.actions.githubusercontent.com"

# Verify checksum with binaries
$ sha256sum -c vault-plugin-secrets-scalr_${VERSION}_checksums.txt

Usage

  1. Once the plugin is registered with your vault instance, you can enable it on a particular path:
$ vault secrets enable -path=scalr vault-plugin-secrets-scalr
  1. Configure the backend with your Scalr hostname, account id and service account token:
$ vault write scalr/config hostname=<hostname> account_id=<account id> token=<token>
  1. Create a role:
$ vault write scalr/roles/example access_policies='[{"scopeID": "<account_id>", "roleIDs": ["<role_id>"], "permissions": ["environments:*", "workspaces:*"]}]'
  1. Issue credentials:
$ vault read scalr/creds/example

Backend Configuration

Parameter Description Required Default
hostname The Scalr hostname yes none
account_id The Scalr account id yes none
token The Scalr token yes none
Required Permissions for Service Account:
  • accounts:set-access-policies
  • environments:read
  • environments:set-access-policies
  • roles:*
  • service-accounts:*
  • workspaces:read
  • workspaces:set-access-policies

Role Configuration

Parameter Description Required Default
access_policies JSON array string containing access policies. yes none
Access Policy

An access policy is a JSON object with the following fields:

Field Description Required Default
scopeID The ID of the scope to which the policy applies. This can be an account, environment, or workspace ID. yes none
roleIDs An array of role IDs that the policy applies to. no none
permissions An array of permissions that the policy grants. no none

When role ids are provided, the roles are assigned to the access policy. When permissions are provided, a temporary role is created with the provided permissions and assigned to the access policy. This temporary role is deleted when the credentials are revoked or expired. It is valid for an access policy to have both role ids and permissions.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory(version string) logical.Factory

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址