platform/api/symfony/Bundle/FrameworkBundle/Secrets/SodiumVault.yaml
2024-09-02 10:44:11 -07:00

88 lines
2.4 KiB
YAML

name: SodiumVault
class_comment: "# * @author Tobias Schultze <http://tobion.de>\n# * @author J\xE9\
r\xE9my Deruss\xE9 <jeremy@derusse.com>\n# * @author Nicolas Grekas <p@tchwork.com>"
dependencies:
- name: EnvVarLoaderInterface
type: class
source: Symfony\Component\DependencyInjection\EnvVarLoaderInterface
- name: LazyString
type: class
source: Symfony\Component\String\LazyString
- name: VarExporter
type: class
source: Symfony\Component\VarExporter\VarExporter
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: secretsDir
- name: decryptionKey
default: 'null'
- name: derivedSecretEnvVar
default: 'null'
comment: "# * @author Tobias Schultze <http://tobion.de>\n# * @author J\xE9r\xE9\
my Deruss\xE9 <jeremy@derusse.com>\n# * @author Nicolas Grekas <p@tchwork.com>\n\
# */\n# class SodiumVault extends AbstractVault implements EnvVarLoaderInterface\n\
# {\n# private ?string $encryptionKey = null;\n# private string|\\Stringable|null\
\ $decryptionKey = null;\n# private string $pathPrefix;\n# private ?string $secretsDir;\n\
# \n# /**\n# * @param $decryptionKey A string or a stringable object that defines\
\ the private key to use to decrypt the vault\n# * or null\
\ to store generated keys in the provided $secretsDir"
- name: generateKeys
visibility: public
parameters:
- name: override
default: 'false'
comment: null
- name: seal
visibility: public
parameters:
- name: name
- name: value
comment: null
- name: reveal
visibility: public
parameters:
- name: name
comment: null
- name: remove
visibility: public
parameters:
- name: name
comment: null
- name: list
visibility: public
parameters:
- name: reveal
default: 'false'
comment: null
- name: loadEnvVars
visibility: public
parameters: []
comment: null
- name: loadKeys
visibility: private
parameters: []
comment: null
- name: export
visibility: private
parameters:
- name: filename
- name: data
comment: null
- name: createSecretsDir
visibility: private
parameters: []
comment: null
- name: getFilename
visibility: private
parameters:
- name: name
comment: null
traits:
- Symfony\Component\DependencyInjection\EnvVarLoaderInterface
- Symfony\Component\String\LazyString
- Symfony\Component\VarExporter\VarExporter
interfaces:
- EnvVarLoaderInterface