Skip to main content

A CLI tool to validate secrets for different services.

Project description

How2Validate

How2Validate is a security-focused tool designed to validate sensitive secrets by querying official secret provider endpoints. It provides real-time feedback on the authenticity of the credentials, ensuring that the secrets are valid.

Why How2Validate?

The need for How2Validate arises from the growing concern of exposing sensitive information in various applications, repositories, and environments. Leaked API keys, invalid credentials, and misconfigured secrets can lead to significant security vulnerabilities. How2Validate helps mitigate these risks by verifying secrets directly with the official providers before they are used in any system.

Features

  • Validate API keys, passwords, and sensitive information: It interacts with official provider authentication endpoints to ensure the authenticity of the secrets.
  • Cross-platform support: Packages available for JavaScript, Python, and Docker environments.
  • Easy to use: Simplifies secret validation with straightforward commands and functions.
  • Real-time feedback: Instantly know the status of your secrets — whether they are valid or not.

How It Works

How2Validate utilizes the official authentication endpoints provided by different service providers (like NPM, GitHub, Snyk, etc.) to validate secrets such as API keys, tokens, and other sensitive data. By querying these trusted endpoints, How2Validate ensures that the secrets are correct and not expired or invalid.

For every provider, How2Validate relies on well-maintained libraries and packages suggested by those providers to handle the authentication process.

Detailed CLI Help

The How2Validate tool provides multiple command-line options for validating secrets with precision.

To see all available commands, use:

how2validate --help

usage: How2Validate Tool [options]

Validate various types of secrets for different services.

options:
  -h, --help      show this help message and exit
  -secretscope    Explore the secret universe. Your next target awaits.
  -p, --provider  Specify your provider. Unleash your validation arsenal.
  -s, --service   Specify your target service. Validate your secrets with precision.
  -sec, --secret  Unveil your secrets to verify their authenticity.
  -r, --response  Monitor the status. View if your secret is Active or InActive.
  -R, --report    Get detailed reports. Receive validated secrets via email.
  -token          Secure your token in the vault, fetch it on demand, or shred it when done. (SubCommands: "delete", "list")
  -v, --version   Expose the version.
  --update        Hack the tool to the latest version.

Ensuring the authenticity of your secrets.

How to Utilize the Functions

How2Validate can be easily installed and used programmatically within Python projects.

Install the package:

pip install how2validate

Example Command:

Validate a secret

how2validate --provider NPM --service "NPM Access Token" --secret "<<SECRET_HERE>>"
-- OR --
how2validate -p NPM -s "NPM Access Token" -sec "<<SECRET_HERE>>"

Validate with response status

how2validate --provider NPM --service "NPM Access Token" --secret "<<SECRET_HERE>>" --response
-- OR --
how2validate -p NPM -s "NPM Access Token" -sec "<<SECRET_HERE>>" -r

Import the package and use the validate function:

from how2validate import validate

# Validate secrets programmatically
validation_result = validate(provider,service, secret, response, report)
print(validation_result)

Example usage of validate function:

from how2validate import validate

# Validate secrets programmatically
validation_result = validate(
    provider="NPM",
    service="NPM Access Token",
    secret="<<SECRET_HERE>>",
    response=False,
    report="useremail@domain.com"
)
print(validation_result)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

how2validate-0.0.3.tar.gz (29.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

how2validate-0.0.3-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

File details

Details for the file how2validate-0.0.3.tar.gz.

File metadata

  • Download URL: how2validate-0.0.3.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for how2validate-0.0.3.tar.gz
Algorithm Hash digest
SHA256 657c4416d062e3a3be9ebfe32709f2a7575a000458fb8e269396af057c5647c9
MD5 4cf87f52b0f08cfee72062fea20d26ee
BLAKE2b-256 0ac09c3340ed7f0c0d4c0276f74fa931e45b1fe0235b294573846aa19c45ed0b

See more details on using hashes here.

File details

Details for the file how2validate-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: how2validate-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 50.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for how2validate-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ceb203ca327435efcc51bb8d1dad3583af6ae0735efb81598a1911c409f7ce3e
MD5 4bf40aeabd1afceebb791e3de857910c
BLAKE2b-256 299c6ac8b5c3dba2af1ff44a3f0a2907a2bd9029dc1631ee8fe9653380667fc4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page