audit icon indicating copy to clipboard operation
audit copied to clipboard

[DO NOT MERGE] Rename InSpec Attributes to Inputs

Open clintoncwolfe opened this issue 5 years ago • 5 comments

Description

As one of the last remaining parts of the renaming of InSpec Attributes to Inputs, this PR renames the default['audit']['attributes'] chef infra attribute to default['audit']['inputs'].

default['audit']['attributes'] is retained, but any values set there are merged into default['audit']['inputs'] and a warning is emitted.

Additionally, the attributes node['audit']['attributes_save'] has been renamed to node['audit']['inputs_save'] and node['audit']['chef_node_attribute_enabled'] to node['audit']['chef_node_input_enabled']. At this time no backwards compatibility is in place for these two features, but that could be added if desired.

Should this be on a major release?

Issues Resolved

Fixes #360

Also gets the attributes test suite passing, which had been failing.

Check List

clintoncwolfe avatar Dec 03 '19 19:12 clintoncwolfe

we'll need to do some work in automate to ensure we're looking for that inputs field: https://github.com/chef/automate/issues/194

vjeffrey avatar Dec 03 '19 21:12 vjeffrey

Let's find out the extent of any possible breakage risk to existing customers before this one progresses - should hold for now

davymcaleer avatar Dec 04 '19 09:12 davymcaleer

This PR exists to look for feedback and alert stakeholders to possible disruption. It's not a particularly urgent change. We'll hold until the change and its impact is better understood, and until there are any downstream changes needed in other products have been implemented.

That said, technical reviewers, please do give feedback: is this sufficiently backwards compatible? will this impact Automate on node save? Can that be avoided? Do we want a major version bump for this change?

clintoncwolfe avatar Dec 04 '19 18:12 clintoncwolfe

DO NOT MERGE flagged per discussion

clintoncwolfe avatar Dec 05 '19 19:12 clintoncwolfe

At least a couple of concerns:

  • Supporting profiles that we ship that still refer to attributes
  • Supporting profiles that users own that still refer to attributes
  • Supporting users that upgrade their audit cookbook version

james-stocks avatar Jun 04 '20 17:06 james-stocks