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

Pass Process handler args through env variables #4259

Conversation

KonstantinTyukalov
Copy link
Contributor

@KonstantinTyukalov KonstantinTyukalov commented May 2, 2023

Work item: internal 2048209

The new logic is hidden under knobs:

  • AGENT_PH_ENABLE_SECURE_ARGUMENTS - enable approach to generate a wrapper script and pass all args as env variable
  • AGENT_PH_ENABLE_TELEMETRY - enable publishing of telemetry to determine possible mistakes with processing of nested env variables

@KonstantinTyukalov KonstantinTyukalov marked this pull request as ready for review May 2, 2023 10:19
@KonstantinTyukalov KonstantinTyukalov requested review from a team as code owners May 2, 2023 10:19
src/Agent.Sdk/Knob/AgentKnobs.cs Outdated Show resolved Hide resolved
@KonstantinTyukalov KonstantinTyukalov merged commit 59ff583 into microsoft:master May 8, 2023
8 checks passed
kirill-ivlev added a commit that referenced this pull request May 19, 2023
* Add SecureArguments and script generator

* Fix variable expanding

* Add ProcessHandlerHelper

* Add tests for helper

* Use helper in PH

* Move constants to function

* Add knobs

* Add telemetry publishing

* Fix args passing

* Remove SecureArguments PH Data param

* Add random Id to script name

* Add description for knobs

* Rename feature for telemetry

* Make telemetry data as numbers

* Update tests

---------

Co-authored-by: Kirill Ivlev <102740624+kirill-ivlev@users.noreply.github.com>
kirill-ivlev added a commit that referenced this pull request May 19, 2023
* Pass Process handler args through env variables (#4259)

* Add SecureArguments and script generator

* Fix variable expanding

* Add ProcessHandlerHelper

* Add tests for helper

* Use helper in PH

* Move constants to function

* Add knobs

* Add telemetry publishing

* Fix args passing

* Remove SecureArguments PH Data param

* Add random Id to script name

* Add description for knobs

* Rename feature for telemetry

* Make telemetry data as numbers

* Update tests

---------

Co-authored-by: Kirill Ivlev <102740624+kirill-ivlev@users.noreply.github.com>

* Fix PH telemetry debug formatting (#4282)

* Fix telemetry debug message

* Remove extra import

* Upd formatting

---------

Co-authored-by: Konstantin Tyukalov <52399739+KonstantinTyukalov@users.noreply.github.com>
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.

None yet

6 participants