lack / keystore
Developer Key store
Installs: 259
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=8.1
Requires (Dev)
- phore/tester: *
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>