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

Introduce a new flag to the k6 archive sub-command #2605

Merged
merged 2 commits into from Sep 9, 2022

Conversation

olegbespalov
Copy link
Collaborator

What?

This PR introduces a new flag to the k6 archive command. If this flag is provided we exclude environment variables provided with the --env from the script's archive (metadata.json).

Why?

There are some cases when environment variables are required for archiving, but it's safer to not store them.

Closes: #2587

@olegbespalov olegbespalov added this to the v0.40.0 milestone Jul 19, 2022
@github-actions github-actions bot requested review from codebien and na-- July 19, 2022 13:51
@olegbespalov olegbespalov self-assigned this Jul 19, 2022
@olegbespalov olegbespalov changed the title Introduce a new falg for the k6 archive Introduce a new flag to the k6 archive sub-command Jul 19, 2022
@na-- na-- removed this from the v0.40.0 milestone Aug 15, 2022
cmd/archive.go Outdated Show resolved Hide resolved
cmd/archive.go Outdated Show resolved Hide resolved
cmd/archive.go Outdated Show resolved Hide resolved
@olegbespalov olegbespalov force-pushed the feat/2587-env-excluding-archive branch 2 times, most recently from a89d585 to c97da13 Compare August 16, 2022 12:47
@olegbespalov olegbespalov requested a review from na-- August 16, 2022 12:48
@olegbespalov olegbespalov force-pushed the feat/2587-env-excluding-archive branch from c97da13 to 88c69ce Compare August 16, 2022 13:32
cmd/archive.go Outdated Show resolved Hide resolved
@olegbespalov olegbespalov force-pushed the feat/2587-env-excluding-archive branch from 88c69ce to f5046b4 Compare August 17, 2022 11:55
@olegbespalov olegbespalov requested a review from na-- August 17, 2022 11:55
@na-- na-- added this to the v0.41.0 milestone Aug 17, 2022
na--
na-- previously approved these changes Aug 17, 2022
mstoykov
mstoykov previously approved these changes Sep 7, 2022
codebien
codebien previously approved these changes Sep 7, 2022
Copy link
Collaborator

@codebien codebien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently, you added an archive.tar file

codebien
codebien previously approved these changes Sep 8, 2022
Introduced a new flag ` --exclude-env-vars`. If passed to the `k6 archive`,
k6 doesn't embed any environment variables (either from --env or the
actual environment) in the archive metadata.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preventing storing environment variables' values in archive
4 participants