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

[Core feature] Shell Task should support accessing secrets #2110

Closed
2 tasks done
kumare3 opened this issue Jan 28, 2022 · 0 comments
Closed
2 tasks done

[Core feature] Shell Task should support accessing secrets #2110

kumare3 opened this issue Jan 28, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@kumare3
Copy link
Contributor

kumare3 commented Jan 28, 2022

Motivation: Why do you think this is important?

As a user of shell task, i should be able to access secrets supplied to my task. This is also true for other context vars like execution_id

Goal: What should the final outcome look like, ideally?

    t = ShellTask(
        name="test",
        script="""
            export EXEC_ID={ctx.execution_id}
            export SEC={ctx.secrets.group.key}
            cat {inputs.f}
            echo "Hello World {inputs.y} on  {inputs.j}"
            """,
        inputs=kwtypes(f=CSVFile, y=FlyteDirectory, j=datetime.datetime),
    )

Describe alternatives you've considered

NA

Propose: Link/Inline OR Additional context

No response

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes
@kumare3 kumare3 added enhancement New feature or request untriaged This issues has not yet been looked at by the Maintainers labels Jan 28, 2022
@kumare3 kumare3 self-assigned this Jan 28, 2022
@kumare3 kumare3 removed the untriaged This issues has not yet been looked at by the Maintainers label Jan 28, 2022
@kumare3 kumare3 added this to the 0.19.2 - Jan 2021 milestone Jan 28, 2022
@kumare3 kumare3 closed this as completed Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant