lack/keystore

Developer Key store

Installs: 346

Dependents: 4

Suggesters: 1

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

pkg:composer/lack/keystore

1.0.0 2024-07-26 07:34 UTC

This package is auto-updated.

Last update: 2025-09-16 22:06:35 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>