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

Do not check if unrecognized plan parameters are sensitive #1886

Merged
merged 1 commit into from
Jun 9, 2020

Conversation

beechtom
Copy link
Contributor

@beechtom beechtom commented Jun 9, 2020

This updates the run_plan function to not check if a plan parameter
has a Sensitive type if the parameter is not recognized by the plan.
Previously, if a parameter was passed to a plan that the plan was not
expecting, the run_plan function would attempt to check the
parameter's type expression to determine whether it should be wrapped as
Sensitive. Since the parameter is unrecognized, it would raise an
error when attempting to access its type expression.

!bug

beechtom added a commit to beechtom/bolt that referenced this pull request Jun 9, 2020
This updates the `run_plan` function to not check if a plan parameter
has a `Sensitive` type if the parameter is not recognized by the plan.
Previously, if a parameter was passed to a plan that the plan was not
expecting, the `run_plan` function would attempt to check the
parameter's type expression to determine whether it should be wrapped as
`Sensitive`. Since the parameter is unrecognized, it would raise an
error when attempting to access its type expression.

!bug

* **Do not check if unrecognized plan parameters are sensitive**
  ([puppetlabs#1886](puppetlabs#1886))

  The `run_plan` function was attempting to check if unrecognized plan
  parameters had a `Sensitive` type expression, causing Bolt to raise an
  unhelpful error. The `run_plan` function no longer checks an
  unrecognized plan parameter's type.
@beechtom beechtom marked this pull request as ready for review June 9, 2020 17:48
@beechtom beechtom requested a review from a team as a code owner June 9, 2020 17:48
This updates the `run_plan` function to not check if a plan parameter
has a `Sensitive` type if the parameter is not recognized by the plan.
Previously, if a parameter was passed to a plan that the plan was not
expecting, the `run_plan` function would attempt to check the
parameter's type expression to determine whether it should be wrapped as
`Sensitive`. Since the parameter is unrecognized, it would raise an
error when attempting to access its type expression.

!bug

* **Raise correct error when passing unknown plan parameters**
  ([puppetlabs#1886](puppetlabs#1886))

  Bolt was raising an obscure error when a plan received an unknown
  parameter. It now raises the correct error indicating that the
  parameter is unknown.
@lucywyman lucywyman merged commit 4487641 into puppetlabs:master Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants