npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ovotech/berglas-node

v1.1.4

Published

Node library for decrypting Berglas secrets

Downloads

242

Maintainers

raluzaraluzadavid.ovodavid.ovoshashankkushwahashashankkushwahasowruvadhanasekarsowruvadhanasekarovotech-sgovotech-sgjubriljubriltrickkaluzatrickkaluzaarturpolianskyiarturpolianskyiovotech-qsovotech-qsmikemchughmikemchughkaluzajianzukaluzajianzueloisechilverseloisechilversstefan-dospinescu-ovostefan-dospinescu-ovoranjithanatarajranjithanatarajovoxovoxtomshawovotomshawovoalexbkaluzaalexbkaluzageorge.anthonygeorge.anthonysean-kantansean-kantanpotsecpotseckawbotkawbotdickensfandickensfanrosario-ovorosario-ovoandrew-brook-radandrew-brook-radabilash999abilash999ruhi-choudhury-kaluzaruhi-choudhury-kaluzakantan_m_rutterkantan_m_ruttercallumdenbycallumdenbydaniel-billing-foundationsdaniel-billing-foundationscaolan.derrycaolan.derryapjmapjmkingfruit85kingfruit85micael-camposmicael-camposovoenergyappsovoenergyappstigranargittigranargitchris-cooney-ovochris-cooney-ovomaxandre.zilsmaxandre.zilsdela_kaluzadela_kaluzahomemoveshomemovesradinadinevaradinadinevaiain.rawson.ovoiain.rawson.ovoovo-oot-botovo-oot-botcohen990-ovocohen990-ovocp-ui-toolingcp-ui-toolingsuttonkaluzasuttonkaluzastuharv-ovostuharv-ovoorion-botorion-botovo-bit-techovo-bit-techklaudia.marzecklaudia.marzecmykola.pmykola.pjgokjgokmwidurekmwidureksir_hisssir_hissg-tibbsg-tibbsweiliangc3weiliangc3luis.gashiluis.gashichrisfordkaluzachrisfordkaluzatombolineptombolinepluke-adams-ovoluke-adams-ovoradhika-bijibillaradhika-bijibillajoepurnell-ovojoepurnell-ovofreddybushboyfreddybushboyellafutkowskaellafutkowskarmcnovormcnovokgray-kaluzakgray-kaluzafahedarshadfahedarshadovo_steveovo_steveaskomaroaskomarorparkhomchukrparkhomchukalexvicolovoalexvicolovoape-teamape-teamengagement-insightsengagement-insightsdominicboston-kaluzadominicboston-kaluzaievgen-paliichuk-ovoievgen-paliichuk-ovooep-accounts-botoep-accounts-botmars-rovermars-rovergjain-npm-ovogjain-npm-ovomwzmwzgordonmartingordonmartinjamie-ebjamie-ebjcdclarkjcdclarkmtardugno-ovomtardugno-ovostewart-kantanstewart-kantandangrebovicdangrebovicmyovo-self-serve-service-accountmyovo-self-serve-service-accountmorris27skymorris27skypeterh-ovopeterh-ovozoejmzoejmbizval-botbizval-bottom.shermantom.shermanvcheban-ovovcheban-ovogregshielkaluzagregshielkaluzaanuprasannaanuprasannavzahakailovzahakailodata.discovery.ovodata.discovery.ovomikitadzianisevichmikitadzianisevichsallyemersonsallyemersonnick-ovoxnick-ovoxronald.nsabiyeraronald.nsabiyerambrignallmbrignallnick.longnick.longipa-botipa-botkaluza-billing-coordinatorkaluza-billing-coordinatoraga-ovoaga-ovolaranjoeduardolaranjoeduardoscott-thomson239scott-thomson239paceteamkaluzapaceteamkaluzapkaripkarifiloseovofiloseovoanthonykaluzaanthonykaluzasimonmclean-ovosimonmclean-ovoovotech-smart-thermostatovotech-smart-thermostattrading-and-dispatchtrading-and-dispatchjonnyleakaluzajonnyleakaluzaovo.trading.techovo.trading.techjennyunchanjennyunchanqe-teamqe-teamesra.kayaesra.kayakaluza-lckaluza-lcnpmpwoonpmpwooiovana.pavloviciiovana.pavlovicioliwia-lakatoszoliwia-lakatoszsamwestsamwestlenardprattovolenardprattovoasellickasellicktom.mottram.kaluzatom.mottram.kaluzakristenkelly_kaluzakristenkelly_kaluzaponchosbponchosbaccrecovoaccrecovomarina-ovomarina-ovocsillabarnacsillabarnalebaptistelebaptistesamcooper720xsamcooper720xretrojetpacksretrojetpackspetro.pavlenkopetro.pavlenkojamesbaumjamesbaumbenvaughanjonesbenvaughanjonesandy-heywood-ovoandy-heywood-ovolaurierwlaurierwa.calderwooda.calderwooddvoroniuc-ovodvoroniuc-ovolaurawadylaurawadyrafolo78rafolo78vmaryvmaryfranciscodiasovofranciscodiasovocwkaluzacwkaluzadavid.chellapah.ovodavid.chellapah.ovovukovovukovom_healdm_healdprtn-ovoprtn-ovoandrewjtnandrewjtnkaluza-rnrkaluza-rnreoinkellyeoinkellykrjjmkrjjmkimnilkimnilmattgrayovomattgrayovoedpatrick-ovoedpatrick-ovoper.linnettper.linnettdwfullertondwfullertonvcobzaruvcobzarujagreenwood1jagreenwood1retail-payg-techretail-payg-techmadalinadulhacmadalinadulhacvasil.dininskivasil.dininskin-jeremic-npmn-jeremic-npmk-fernandezk-fernandezphala.kantanphala.kantancarolinelywoodcarolinelywoodovo-aarongibbisonovo-aarongibbisontom.harrison-ovotom.harrison-ovodanmalydanmalyjensraaby-ovojensraaby-ovojameswelshkaluzajameswelshkaluzamichal-at-kantanmichal-at-kantancristinapetrovcristinapetrovovo-joshovo-joshzach-smith-kzazach-smith-kzaanthony_tonevanthony_tonevscdfscdfnevenablagoevanevenablagoevarise-teamrise-teamjackbott-ovojackbott-ovokuwotukuwoturohith-kaluzarohith-kaluzatudor.harries-kaluzatudor.harries-kaluzamike.waltersmike.waltersdarren_thomas_ovodarren_thomas_ovolughinolughinosamrumley88samrumley88bisongeebisongeeovotech-identityovotech-identitykim-wysocki-ovokim-wysocki-ovojchoskinsjchoskinsjamesnoble1jamesnoble1rui-alves-kaluzarui-alves-kaluzaovo-dcovo-dcohs-auroraohs-aurorakaluza-devexkaluza-devext.vytrykusht.vytrykushkelvedenkelvedenchris.clarkzzzchris.clarkzzzalan_smith_ovoalan_smith_ovometering-reads-health-botmetering-reads-health-botkgouldkgouldlesteslestesarpad.fesis.ovoarpad.fesis.ovoovo-jamesovo-jamesfriendigofriendigolewrightlewrightkathryn.allankathryn.allanadamblance-kaluzaadamblance-kaluzaveselin.stamenovveselin.stamenovjadedarkojadedarkothomasgdanethomasgdanegraemefgraemefr0bturnerr0bturnerphilip.fol.ovophilip.fol.ovoliam-chambersliam-chamberscifdsocifdsosulgee.kimsulgee.kimxenjkexenjkethomas.bingovothomas.bingovosophiar27sophiar27irena3888irena3888mableyipmableyipshonnguenshonnguenovo-venkatovo-venkatedgranauedgranauik1004kaluzaik1004kaluzaandreiracasan-ovoandreiracasan-ovodyl349dyl349serena-ahahserena-ahahmichaelwheelermichaelwheelermarcuskiellymarcuskiellypablomuro-ovotechpablomuro-ovotechkaluziankaluzianmike-gregory-kaluzamike-gregory-kaluzazyuriizyuriiraraujo-ovoraraujo-ovorafael_kaluzarafael_kaluzadelaluzadelaluzaazaspenkoazaspenkowill.crickwill.crickmelcbuckovmelcbuckovkupxckupxcvslepkanvslepkanadam-mcdevittadam-mcdevittpedro.caldeirapedro.caldeiramladjan-perceptivemladjan-perceptivepropspropsjthomasovojthomasovomesh00mesh00tarlingovotarlingovodavekaluzadavekaluzamikethorpe-ovomikethorpe-ovooeptariffsoeptariffsjrdavenportjrdavenportmiguel-catarinomiguel-catarinosimon.pettysimon.pettyamolrindheamolrindhephil-pinkowskiphil-pinkowskirenimihaylovarenimihaylovarob.desboisrob.desboisrichard-mounterrichard-mounterjeffer_ovojeffer_ovojlucktayjlucktayrekaelek-ovorekaelek-ovoangloxangloxharrisonbaxterharrisonbaxtermanoj-ovomanoj-ovobare7aovobare7aovolewisdick-ovolewisdick-ovomikaelgiacominikaluzamikaelgiacominikaluzabrettburman-codebrettburman-codeolikaluzaolikaluzavolodymyr-viniarvolodymyr-viniarsambssambsds-ovods-ovomaieutiquermaieutiquershnistshnistovonicktunstallovonicktunstallachagan_kaluzaachagan_kaluzageorgexcollinsgeorgexcollinsstevendiplockstevendiplockjac-hughesjac-hughesezio-intravaia-ovoezio-intravaia-ovozolegovozolegovoryan.lee1ryan.lee1willshawmediawillshawmediaandbrssandbrssvitalii_khudenkovitalii_khudenkobookings-teambookings-teambenaston13benaston13jcholewajcholewajoewhittlesjoewhittlesjnysevillajnysevillagabriel.hulubeigabriel.hulubeipallaitpallaitovo-markswafferovo-markswafferkseniya.belevichkseniya.belevichmnolan.kaluzamnolan.kaluzamike.hollowaymike.hollowaychintogtokhchintogtokhion.nasuion.nasurachelknightkaluzarachelknightkaluzabphenriqueskaluzabphenriqueskaluzawjbenfoldwjbenfoldalicia.bowersalicia.bowerstimothy.ajisafetimothy.ajisafepuzzledbythewebpuzzledbythewebmarknreynoldsmarknreynoldsramanan-kaluzaramanan-kaluzamosman128mosman128benjamin.goldingbenjamin.goldingtashacallowtashacallowthomas.finchthomas.finchfraserhamiltonovofraserhamiltonovolilbyteltdlilbyteltdirina.dimitriuirina.dimitriumarkwood23markwood23militsa_tsvetkovamilitsa_tsvetkovasujitkumar.shilsujitkumar.shilbohdan-kozeremabohdan-kozeremapkoretsovopkoretsovoylukomskyi-corgiylukomskyi-corgipaul.gallagherpaul.gallagherandrixbandrixbnathanmarshovonathanmarshovoranarajput123ranarajput123khadra.ismail2khadra.ismail2jadamiec-ovojadamiec-ovocrektekcrektekmiksgmiksga1nsleya1nsleygracydegracydejonnycundalljonnycundallsaamiyayousufsaamiyayousufveljko.popovicveljko.popoviciharea-ovoiharea-ovoharry.faulknerharry.faulknercenkovic_ovocenkovic_ovombartish_ovombartish_ovoekeith-kaluzaekeith-kaluzamaxatkomaxatkovipul_vkvipul_vksophiesillmanovosophiesillmanovosamrushtonsamrushtonmihaidavidovomihaidavidovoemmadavidsemmadavidsmattbarkwaymattbarkwaydhasovodhasovowillcorrigan-ovowillcorrigan-ovoandrewinci-devandrewinci-devborislav-draganov-ovoborislav-draganov-ovopedro.costa.kaluzapedro.costa.kaluzaedvinas.ovoedvinas.ovoadam.vileadam.vilezoelanhamzoelanhamkaluza-tariffs-and-chargingkaluza-tariffs-and-chargingtokict2tokict2owen1111owen1111caal-botcaal-botrafal-macrafal-macovotarasrusyniakovotarasrusyniakvasileovovasileovolyuboslav.lyubenov.ovolyuboslav.lyubenov.ovokaluza-typescript-caretakers-botkaluza-typescript-caretakers-botmfiialko-ovomfiialko-ovolucafrancesclucafrancesccharlieinshawcharlieinshawconsumptionconsumptionovotech-air-source-heat-pumpovotech-air-source-heat-pumpmishabrumlmishabrumledandrewovoedandrewovos.slotskyi-ovos.slotskyi-ovoaleksandyraleksandyrivan.mihov-ovoivan.mihov-ovochris.brookeschris.brookesfulvio.ovofulvio.ovoiuna4eiuna4etc-kaluzatc-kaluzamaricel-ovomaricel-ovobrianbroughtonbrianbroughtonmark-b-ovomark-b-ovoandymay44andymay44gordokgordokmikecsmith-ovomikecsmith-ovoolliebatchelorolliebatchelorluke.parsons.kaluzaluke.parsons.kaluzajamieovojamieovodjmelonzdjmelonztommaso.brunotommaso.brunodarinakulishovodarinakulishovorobert-g-jrobert-g-jgabrielngovogabrielngovorsh-ovorsh-ovogarylaikaluzagarylaikaluzadlaird-ovodlaird-ovoovo.backstage.adminsovo.backstage.adminsdtheasby-kaluzadtheasby-kaluzahentielouwhentielouwnish1406nish1406jacktreblejacktreblebilaal-kaluzabilaal-kaluzacatalin.andreicatalin.andreiwarren-ovowarren-ovokelemensanyikelemensanyidana-kaluzadana-kaluzabrooke-mbrooke-mchen-kaluzachen-kaluzandoolan360ndoolan360jamesg-kaluzajamesg-kaluzakaluza-serverless-caretakerskaluza-serverless-caretakersovo_nunoazevedoovo_nunoazevedosourabhkhotsourabhkhotpauleuhpauleuhfiona.youngfiona.youngfelipeneuhaussfelipeneuhaussgideoncaspigideoncaspitmpalmertmpalmertropertropernayomi_payments_ausnayomi_payments_ausamymctigueamymctiguejohnmarshallkaluzajohnmarshallkaluzaiulian.alexandru-ovoiulian.alexandru-ovokaluza-statements-botkaluza-statements-botrichardday-ovorichardday-ovokatyishkatyishc-bojanc-bojaniskren.ovoiskren.ovorichard.ashworth7richard.ashworth7yordan-petkov-ovoyordan-petkov-ovoreyadsibleycoombereyadsibleycoombestvmachine-kaluzastvmachine-kaluzacsherwincsherwinrenukasampathkumarrenukasampathkumarolesiapaslavskaolesiapaslavskamigration-tooling-botmigration-tooling-botrichard-ovorichard-ovoolenakolenakutamkumar1012utamkumar1012davidnhamiltondavidnhamiltonkaluza-energy-chargingkaluza-energy-chargingjake-davisovojake-davisovoafdecastro879afdecastro879ovo-homeovo-homeren-binden-kaluzaren-binden-kaluza

Keywords

Readme

Overview

Node library to interact with Berglas-managed secrets in Google Cloud Platform.

Usage

Installation

yarn add @ovotech/berglas-node

Use Case

Currently, Berglas only supports the Go runtime on Cloud Functions. With this library, one is able to use Berglas secrets while running NodeJS functions on Cloud Functions.

Interact

The library has two main functions: resolve and substitute.

resolve retrieves and deciphers a single Berglas secret. substitute replaces environment variables values beginning with the Berglas prefix (berglas://) in the process with their resolved values.

Examples

Resolving a single secret

// index.js

import { resolve } from "@ovotech/berglas-node";

let mySecret;

async function funcThatNeedsSecret() {
  if (!mySecret) {
    mySecret = await resolve(PROJECT_ID, "secrets-bucket/mySecret");
  }

  // Use deciphered secret value;
}

funcThatNeedsSecret();

Substituting all environment vars at the start of an application

// index.js

// Before:
// process.env.FOO=berglas://secrets-bucket/foo

import { substitute } from "@ovotech/berglas-node";

async function main() {
  await substitute();

  // Run application, pulling secrets from environvment vars
  // After: process.env.FOO=bar
}

main();

Future

This is a very simplistic library to get basic Berglas functionality working in environvments like NodeJS on Cloud Functions. However, there is always room for improvement. Some ideas so far:

  • Synchronous versions of functions. The benefit here is that then substitute could run immediately upon import and make integration with applications more seamless (and we don't have to wait for top-level await!)
  • Listing, creating secrets

If you have any ideas or feature requests, please open an issue!

License

This library is licensed under the MIT license. Do what you want!