
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@webgap/configuration
Advanced tools
WebGAP configurations module. Contains the base Configurations Schema for all webgap components.
This is the base configurations module for WebGAP. Contains base configurations Schema for all WebGAP components.
Handles configurations using node-convict.
This module uses 2 environment variables. Only environment variables, no options parameters, are used in order to make sure the configurations and configurations schema is loaded once and only once (Caching Caveats).
The module loads a configuration JSON file:
NODE_APP_CONF - Full path to the configuration file
The module holds a default schema for configurations used by WebGAP. If you want to use your own, it can be overridden using the following environment variable:
NODE_APP_CONF_SCHEMA - Full path of an alternative configurations schema
npm install @webgap/configuration --save
var configuration = require('@webgap/configuration');
...
var tokenSecret = configuration.get('GENERAL.TOKEN.SECRET');
...
Check the file configurations-schema.json for schema definition.
Apache License, Version 2.0
FAQs
WebGAP configurations module. Contains the base Configurations Schema for all webgap components.
We found that @webgap/configuration 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.