Class FileSystemSecretStoreHeaplet

  • All Implemented Interfaces:
    Heaplet

    public class FileSystemSecretStoreHeaplet
    extends GenericHeaplet
    This heaplet represents an instance of a PropertyResolverSecretStore resolving properties from files in a directory. The FlatFileResolver resolves each property stored in its own file in some directory.
     {
           "type": "FileSystemSecretStore",
           "config": {
             "directory":                 expression                   [REQUIRED - path to the directory containing
                                                                                   the files (one file per password).]
             "format":                    expression(enum)             [OPTIONAL - PLAIN or BASE64, default is BASE64],
             "suffix":                    expression                   [OPTIONAL - the suffix such as ".secret",
                                                                                   default: empty.]
             "mappings":[                 array                        [OPTIONAL - secrets mappings.]
               {                          object
                 "secretId":                expression                   [REQUIRED - The label of the secret to map.]
                 "format":                  reference                    [REQUIRED - a reference to a
                                                                                     {@link SecretPropertyFormat} object.]
               }
             ]
             "leaseExpiry":               expression<duration>         [ OPTIONAL - defaults to 5 minutes.]
           }
        }
     

    Example:

     {
           "type": "FileSystemSecretStore",
           "config": {
             "directory": "/path/to/openig/basedir/secrets"
             "format": "PLAIN",
           }
        }
     
    See Also:
    FlatFileResolver
    • Constructor Detail

      • FileSystemSecretStoreHeaplet

        public FileSystemSecretStoreHeaplet()
    • Method Detail