
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@strong-roots-capital/docker-secrets
Advanced tools
FP loading of docker secrets, falling back on env vars
FP loading of docker secrets, falling back on env vars
npm install @strong-roots-capital/docker-secrets
import { secrets } from '@strong-roots-capital/docker-secrets'
async function main() {
console.log((await secrets.get('user')).orDefault('Ishmael'))
console.log(secrets.getSync('PWD'))
const getFromRoot = secrets.getFrom('/root/super-secrets-do-not-share')
console.log(await getFromRoot('launch-codes'))
console.log(secrets.getFromSync ('/home/gob') ('illusions'))
}
main()
▸ get(secret: string
): Promise
<Maybe
<string
>>
Defined in docker-secrets.ts:100
Get a secret asynchronously, first checking /run/secrets and then falling-back to environment variables.
Parameters:
Name | Type |
---|---|
secret | string |
Returns: Promise
<Maybe
<string
>>
▸ getSync(secret: string
): Maybe
<string
>
Defined in docker-secrets.ts:116
Get a secret synchronously, first checking /run/secrets and then falling-back to environment variables.
Parameters:
Name | Type |
---|---|
secret | string |
Returns: Maybe
<string
>
▸ getFrom(directory: string
): (secret: string
) => Promise
<Maybe
<string
>>
Defined in docker-secrets.ts:108
Get a secret asynchronously, first checking directory
and then falling-back to environment variables.
Parameters:
Name | Type |
---|---|
directory | string |
Returns: (secret: string
) => Promise
<Maybe
<string
>>
▸ getFromSync(directory: string
): (secret: string
) => Maybe
<string
>
Defined in docker-secrets.ts:124
Get a secret synchronously, first checking directory
and then falling-back to environment variables.
Parameters:
Name | Type |
---|---|
directory | string |
Returns: (secret: string
) => Maybe
<string
>
FAQs
FP loading of docker secrets, falling back on env vars
We found that @strong-roots-capital/docker-secrets demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.