Class SecretManagerPropertySourceReader

java.lang.Object
io.micronaut.gcp.secretmanager.imports.SecretManagerPropertySourceReader

@Internal public final class SecretManagerPropertySourceReader extends Object
Shared secret payload reader for Google Secret Manager config imports.
Since:
5.0
  • Method Details

    • read

      public static io.micronaut.context.env.PropertySource read(io.micronaut.context.env.Environment environment, VersionedSecret secret, String sourceName, int priority)
      Reads a decoded secret payload with the available property source readers and returns it as a property source.
      Parameters:
      environment - The active environment providing property source readers
      secret - The fetched secret payload
      sourceName - The property source name to publish
      priority - The property source priority
      Returns:
      A property source for the decoded secret payload