| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Also use partial search for much small on-the-wire sizes
Signed-off-by: Thom May <thom@chef.io>
|
|\
| |
| | |
Deprecate creating properties whose names are already methods
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When creating a resource, a user can create a property that is the same
name as an already-existing Ruby method, such as `#hash`. In the case of
the `#hash` method, this can cause issues when attempting to adding
resources to other data structures, such as Arrays or Hashes. In other
examples, this could cause unexpected behavior that is incredibly
difficult to troubleshoot.
This change adds a deprecation warning in the case where a user adds
a property to a resource that the resource instance already responds to.
If y'all are OK with this approach, I'll be happy to write up the
deprecation doc for this for docs.chef.io.
Signed-off-by: Adam Leff <adam@leff.co>
|
|\ \
| | |
| | | |
pass true as 2nd args for Net::SSH.configuration_for by default.
|
| | |
| | |
| | |
| | | |
Signed-off-by: SAWANOBORI Yukihiko <sawanoboriyu@higanworks.com>
|
|\ \ \
| | | |
| | | | |
Correct SFTP remote_file tests
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Incorrectly tested 'ftp' scheme.
Fixes: #4750
Obvious fix.
Signed-off-by: Adam Ward <adamw@subdesigns.net>
|
|\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | | |
juliandunn/aix_candidate_version_blindly_checks_source
Don't blindly check source on candidate_version calls.
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Julian C. Dunn <jdunn@chef.io>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
closes #5556
corrects behavior to 12.11.x behavior which was lost in the refactor
may address #5715
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\ \ \ \
| | | | |
| | | | | |
DNF Provider PR #2
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
fixes arch array support.
pretty sure that my "helpfully" compacting out nils from the
names and versions passed to install_package / remove_package
was a design flaw now. all of the helpers i've created to
translate from package_name to various arrays also assumes
the package_name is a unique identifier which is what was going
wrong here, and is wrong. best to just have all the arrays
indexed the same.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
dunno what i was thinking.
add some more testing as well.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
usermod -U for user with empty password on Rhel6 zlinux systems
exits with error message. Updating the test for this behavior
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: nimisha <nimisha.sharad@clogeny.com>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Report a blank resource if sensitive is enabled
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Salim Afiune <afiune@chef.io>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
COOL-642/ZD 12936 - Chef Manage Run History compromises sensitive data
Before this commit we were sending sensitive resource information to
Reporting and therefor you were able to see the sensitive data on the
Run History in the Chef Manage Console.
This commit is fixing this problem and now it is transforming any
sensitive resource to display the word `*sensitive*` instead of the
actual data. As we are inserting this values directly to the data base,
it means that this change will cascade all the way to the front-end.
Catch: Old data that was already reported and is displaying sensitive
data will contineu to be displayed. Apologize.
Signed-off-by: Salim Afiune <afiune@chef.io>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
i didn't fully grok the way the dscl providers were written and
only half fixed the group dscl provider, but later did a better
job fixing the user one.
fixes the breakage caught in the dscl group func tests.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* run_command elimination
* shell_out array usage
* other misc cleanup
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* removes more run_command
* converts to shell_out_compact
* some other misc style cleanup
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
- consistent use of shell_out_compact!
- remove more uses of run_command
- some other code cleanup
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |_|_|/
|/| | |
| | | |
| | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\ \ \ \
| |/ / /
|/| | |
| | | |
| | | | |
chef/adamleff/ipo-500/fix-data-collector-org-parsing
Fix Data Collector organization parsing regex
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The regex used to pluck the Chef Server Organization from the
chef_server_url config value did not permit hyphens in org names
even though they are allowed by Chef Server. This caused org names
to get incorrectly truncated when sending the payload to Data
Collector servers.
Re: Chef bug IPO-500
Signed-off-by: Adam Leff <adam@leff.co>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Use object ID when detected unprocessed Resources
In the Data Collector, when detecting unprocessed resources, a Set
was built up using the resource object itself as the Set element.
Internally, Set adds this to a Hash.
We allow users to create custom resources that could contain a property
named "hash" which in turn wires up a `#hash` instance method on the
Resource. Ruby expects object's `#hash` method to return a Fixnum that
it uses internally. So if a resource had a "hash" property that returned
a String, bad things happened.
With this change, we make our own Hash and use the resource's object ID
in the key so we don't have to worry about the resource's `#hash` method
getting called and throwing an exception. I will send up a separate
change that warns users when they choose a property name that is already
an existing method name.
Fixes #5565.
Signed-off-by: Adam Leff <adam@leff.co>
|
|\ \ \ \
| |/ / /
|/| | | |
Properly deprecate old Chef::Platform methods
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
dsc_script provider needs os defined.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|