Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable AWS secrets manager #5395

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions modules/nextflow/src/main/groovy/nextflow/cli/CmdSecret.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@

package nextflow.cli

import java.nio.file.Paths

import com.beust.jcommander.Parameter
import com.beust.jcommander.Parameters
import groovy.transform.CompileStatic
import groovy.util.logging.Slf4j
import nextflow.Session
import nextflow.config.ConfigBuilder
import nextflow.exception.AbortOperationException
import nextflow.plugin.Plugins
import nextflow.secret.SecretsLoader
Expand Down Expand Up @@ -96,6 +100,16 @@ class CmdSecret extends CmdBase implements UsageAware {
println result.join('\n').toString()
}

private Session createSession() {
// create the config
final config = new ConfigBuilder()
.setOptions(getLauncher().getOptions())
.setBaseDir(Paths.get('.'))
.build()

return new Session(config)
}

/**
* Main command entry point
*/
Expand All @@ -108,6 +122,8 @@ class CmdSecret extends CmdBase implements UsageAware {

// setup the plugins system and load the secrets provider
Plugins.init()
// createSession()
Plugins.load(Map.of())
provider = SecretsLoader.instance.load()

// run the command
Expand Down