lack/keystore

Developer Key store

dev-main 2024-07-26 07:34 UTC

This package is auto-updated.

Last update: 2024-11-26 08:11:53 UTC


README

Usage

KeyStore::SetKeyfile("/opt/.keystore.yml"); // Default file

$secret = KeyStore::Get()->getAccessKey(Service::GoogleMaps);

Example .keystore.yml

google_maps: gx-02kjlskjehzlwk...
open_ai: ai-398hwlwkjdl...

Search Path

By default the keystore will search for the file in the following paths for a .keystore.yml:

  • cur CWD and subpaths
  • /run/secrets/.keystore.yml

The Keystore will then search for a filename "service_name"

in

/run/secrets/<service_name>