"effectively list out the recipes that adhere to the best practices and ensure these are most visible to new autopkg users"
--
You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Issue 1 - Code Signature validation
Most modern applications now have code signing, however many recipes are not validating the code signature. While some packages cannot be properly validated (*glares at Google Chrome*), authors should at minimum check for pkg/app code signatures.
Issue 2 - Original author no longer maintaining recipes
As I've audited recipes, I have sent many PR's to recipe authors. One in particular informed me that he is no longer actively maintaining the recipes, but would gladly accept PR's. https://github.com/autopkg/justinrummel-recipes/pull/9 While this is great, we cannot ensure that recipe authors will stay within our community nor accept PRs. Perhaps our current workflow needs to re-designed.
Issue 3 - Package downloaded from insecure location.
This particular issue is less of a problem so long as Code Signature validation is present, however many of the recipes I audited had neither. Some companies also had improper CDN/proxy configurations and I could not move to HTTPS. Regardless, an author should attempt to use encryption if possible.
Issue 4 - Cleanup
Many recipes do not include any cleanup of the files that were originally downloaded. While my audit did not send PR's for fixing this, I do think recipe authors should attempt to cleanup as much as possible. runs can download a significant amount of data and within a few weeks require pruning. Cleaning up after a run would greatly help with this.
Issue 5 - Old recipes that should be abandoned.
https://github.com/autopkg/recipes/blob/master/TextMate/TextMate.download.recipe is a perfect example of a recipe that should be abandoned and possibly removed. It has no Code Signature validation nor SSL and after reaching out to the vendor, I was told there are no plans to fix these issues. The software also has many errors on modern OS X/macOS versions.
Issue 6 - Duplicate recipes
I will admit that I am guilty of this as well (https://github.com/autopkg/autopkg/issues/288). While this issue is difficult to resolve, we do need to prune the duplicates and pick the one that adheres to the best standards.
On Jul 6, 2016, at 10:27 AM, Erik <eriknico...@gmail.com> wrote:
On Jul 7, 2016, at 4:22 PM, Nick McSpadden <nmcsp...@gmail.com> wrote:This is fantastic work, but I'd like to take it a step further and add a preference to automatically reject any recipe which doesn't meet these trust guidelines.
Summary:
878 recipes audited
665 recipes with audit issues
213 recipes with no issues to report
We have a lot of work ahead of us. :)
Issue 2 - Original author no longer maintaining recipesAs I've audited recipes, I have sent many PR's to recipe authors. One in particular informed me that he is no longer actively maintaining the recipes, but would gladly accept PR's. https://github.com/autopkg/justinrummel-recipes/pull/9 While this is great, we cannot ensure that recipe authors will stay within our community nor accept PRs. Perhaps our current workflow needs to re-designed.
Issue 3 - Package downloaded from insecure location.This particular issue is less of a problem so long as Code Signature validation is present, however many of the recipes I audited had neither. Some companies also had improper CDN/proxy configurations and I could not move to HTTPS. Regardless, an author should attempt to use encryption if possible.
Issue 4 - CleanupMany recipes do not include any cleanup of the files that were originally downloaded. While my audit did not send PR's for fixing this, I do think recipe authors should attempt to cleanup as much as possible. runs can download a significant amount of data and within a few weeks require pruning. Cleaning up after a run would greatly help with this.
Issue 5 - Old recipes that should be abandoned.https://github.com/autopkg/recipes/blob/master/TextMate/TextMate.download.recipe is a perfect example of a recipe that should be abandoned and possibly removed. It has no Code Signature validation nor SSL and after reaching out to the vendor, I was told there are no plans to fix these issues. The software also has many errors on modern OS X/macOS versions.
I think this goes back to the discussion about which elements of an audit are "obvious" fixes and which are just things the consumer of a given recipe should be aware of.
On Jul 8, 2016, at 10:04 AM, Mr. Alan Siu <as...@siprep.org> wrote:I think this goes back to the discussion about which elements of an audit are "obvious" fixes and which are just things the consumer of a given recipe should be aware of.Yes, I'd definitely want to know, of the recipes I could potentially use, which ones are essentially unfixable (there is no version 2 to use code signature verifier on and/or no available https download location) and which ones are just yet-to-be-fixed.For the latter, I'd have the option to even make a pull request. The former would just waste my time to investigate if the recipe maintainer had already looked into https and code signature verification.
I have rerun the audit and as of a few minutes ago here is the status of _all_ .download.recipes across the entire autopkg recipe base.
Summary:
1182 recipes audited
914 recipes with audit issues
268 recipes triggered no audit flags
On Jul 7, 2016, at 4:06 PM, Gregory Neagle <gregn...@mac.com> wrote:I have some ideas on how we could do this in a reasonably secure manner such that future changes to that processor would cause the warnings to resurface.Here's my thinking:The admin could add additional data to a recipe override (some of this might be done automatically by `autopkg make-override` eventually):1) Each parent recipe could be explicitly listed, along with a checksum. As long as the checksum for each parent recipe doesn't change, the parent recipes would be "trusted".2) Each non-core processor used by the recipe (or its parents) could be explicitly listed, also with a checksum. Again, as long as the checksum does not change, the non-core processor would be "trusted".Trusting the parents and the non-core processors would be a manual option -- the admin would use a command to add this information to a recipe override. When `autopkg audit` runs, it would use this additional data to decide whether or not to warn about a potential issue for a given recipe.Eventually, the audit mechanism might be tied into the `repo-add` and `repo-update` verbs to either automatically do an audit when repos are added or updated, or at least to remind the admin that it's a good idea to do an audit.
--
You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Jul 21, 2016, at 4:40 PM, Gregory Neagle <gregn...@mac.com> wrote:My current experiments around parent recipe trust verification are available here:https://github.com/autopkg/autopkg/tree/recipe-checksumming`autopkg make-override Foo.recipe` "automagically" adds parent recipe trust verification info to the override.`autopkg verify-trust-info some.recipe` verifies the trust info`autopkg update-trust-info some.recipe` updates existing trust info or adds it if there is none. It's meant to be used on recipe overrides, but might be useful on any child recipe.`autopkg run some.recipe` will fail a given recipe if trust verification fails. this can be overridden by adding --ignore-parent-trust-verification-errors
autopkg update-trust-info ~/Library/AutoPkg/RecipeOverrides/*.recipe
autopkg repo-update all
autopkg verify-trust-info ~/Library/AutoPkg/RecipeOverrides/*.recipe
Parent trust info verification failed for /Users/gneagle/Library/AutoPkg/RecipeOverrides/LibreOffice.munki.recipe
Could not verify trust of parent recipes and custom processors:
Expected non-core processor list: [u'LibreOfficeURLProvider']Actual non-core processor list: []Our stored checksum for processor LibreOfficeURLProvider does not match the current content of that processor.Perhaps processor LibreOfficeURLProvider has been changed.Processor path: NoneOur stored checksum for parent recipe io.github.hjuutilainen.download.LibreOffice does not match the current content of that recipe.Perhaps parent recipe io.github.hjuutilainen.download.LibreOffice has been changed.Recipe path: /Users/gneagle/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes/LibreOffice/LibreOffice.download.recipediff --git a/LibreOffice/LibreOffice.download.recipe b/LibreOffice/LibreOffice.download.recipeindex d0ee986..16f0765 100644--- a/LibreOffice/LibreOffice.download.recipe+++ b/LibreOffice/LibreOffice.download.recipe@@ -3,17 +3,18 @@<plist version="1.0"><dict><key>Description</key>- <string>Downloads the latest LibreOffice.</string>+ <string>Downloads the latest LibreOffice. Set RELEASE to either "fresh" or "still".++LibreOffice Still is the stable version that has undergone more testing (over a longer time). It is usually recommended for more conservative use.+LibreOffice Fresh is the stable version with the most recent features. Users interested in taking advantage of our most innovative features should download and use our fresh version.</string><key>Identifier</key><string>io.github.hjuutilainen.download.LibreOffice</string><key>Input</key><dict><key>NAME</key><string>LibreOffice</string>- <key>TYPE</key>- <string>mac-x86_64</string>- <key>USER_AGENT</key>- <string>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.28.10 (KHTML, like Gecko) Version/6.0.3 Safari/536.28.10</string>+ <key>RELEASE</key>+ <string>fresh</string></dict><key>MinimumVersion</key><string>0.2.0</string>@@ -21,11 +22,13 @@<array><dict><key>Processor</key>- <string>LibreOfficeURLProvider</string>+ <string>URLTextSearcher</string><key>Arguments</key><dict>- <key>type</key>- <string>%TYPE%</string>+ <key>re_pattern</key>+ <string>(?P<DOWNLOAD_URL>download.documentfoundation.org/libreoffice/stable/[\d\.]+/mac/x86_64/LibreOffice_(?P<version>[\d\.]+)_MacOS_x86-64.dmg)</string>+ <key>url</key></dict></dict><dict>@@ -33,11 +36,8 @@
<string>URLDownloader</string><key>Arguments</key><dict>
- <key>request_headers</key>- <dict>- <key>user-agent</key>- <string>%USER_AGENT%</string>- </dict>+ <key>url</key>+ <string>https://%DOWNLOAD_URL%</string></dict></dict><dict>Our stored checksum for parent recipe io.github.hjuutilainen.munki.LibreOffice does not match the current content of that recipe.Perhaps parent recipe io.github.hjuutilainen.munki.LibreOffice has been changed.Recipe path: /Users/gneagle/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes/LibreOffice/LibreOffice.munki.recipediff --git a/LibreOffice/LibreOffice.munki.recipe b/LibreOffice/LibreOffice.munki.recipeindex b60ec1c..6205d83 100644--- a/LibreOffice/LibreOffice.munki.recipe+++ b/LibreOffice/LibreOffice.munki.recipe@@ -3,13 +3,18 @@<plist version="1.0"><dict><key>Description</key>- <string>Downloads the current release version of LibreOffice and imports into Munki.</string>+ <string>Downloads the current release version of LibreOffice and imports into Munki. Set RELEASE to either "fresh" or "still".++LibreOffice Still is the stable version that has undergone more testing (over a longer time). It is usually recommended for more conservative use.+LibreOffice Fresh is the stable version with the most recent features. Users interested in taking advantage of our most innovative features should download and use our fresh version.</string><key>Identifier</key><string>io.github.hjuutilainen.munki.LibreOffice</string><key>Input</key><dict><key>NAME</key><string>LibreOffice</string>+ <key>RELEASE</key>+ <string>fresh</string><key>MUNKI_REPO_SUBDIR</key><string>apps/LibreOffice</string><key>MUNKI_CATEGORY</key>
autopkg run LibreOffice.munkiProcessing LibreOffice.munki...
Failed.The following recipes failed:
LibreOffice.munki
Could not verify trust of parent recipes and custom processors:
Expected non-core processor list: [u'LibreOfficeURLProvider']Actual non-core processor list: []<etc>
./autopkg verify-trust-info AdobeFlashPlayer.munki
AdobeFlashPlayer.munki: NO TRUST INFO
Currently an autopkg run will not warn the admin that the override doesn't contain trust information.
2. Perhaps a new preference: RequireOverrideTrustInfo. If someone attempts to remove the trust information from an override, autopkg will refuse to run that particular override. Perhaps this key would also require each recipe that is ran to have an override, containing the trust info. You would not be able to run the default recipes.
3. The git diffs will only work if you are using autopkg repo-add. If you are managing repos and ignoring each recipe repo's own git information, this information will not be generated. I think for the few people doing something like this, that will be OK.
Other than that, it looks really good.
-Greg
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discuss+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discuss+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discuss+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discuss+unsubscribe@googlegroups.com.
./autopkg run AutoDMG.munki
Processing AutoDMG.munki...
Failed.
The following recipes failed:
AutoDMG.munki
No trust information present
Nothing downloaded, packaged or imported.
So the admin verifies the trust info, and finds out it fails.
./autopkg verify-trust-info AutoDMG.munki
AutoDMG.munki: FAILED
./autopkg verify-trust-info AutoDMG.munki
AutoDMG.munki: OK
./autopkg run AutoDMG.munki
Processing AutoDMG.munki...
Nothing downloaded, packaged or imported.
./autopkg run AutoDMG.munki Firefox.munki
Processing AutoDMG.munki...
Processing Firefox.munki...
Failed.
The following recipes failed:
Firefox.munki
No trust information present
Nothing downloaded, packaged or imported.
On Aug 1, 2016, at 3:49 PM, Erik <eriknico...@gmail.com> wrote:As a side note, this will also require that _all_ recipes require an override, so this may break the autopkg install feature.
You can set FAIL_RECIPES_WITHOUT_TRUST_INFO in autopkg's preferences, or via CLI:autopkg run OracleJava8.munki OracleJava8JDK.munki MakeCatalogs.munki -k FAIL_RECIPES_WITHOUT_TRUST_INFO=''Processing OracleJava8.munki...WARNING: OracleJava8.munki is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...Processing OracleJava8JDK.munki...WARNING: OracleJava8JDK.munki is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...Processing MakeCatalogs.munki...WARNING: MakeCatalogs.munki is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
autopkg run OracleJava8.munki OracleJava8JDK.munki MakeCatalogs.munki -k FAIL_RECIPES_WITHOUT_TRUST_INFO=yesProcessing OracleJava8.munki...Failed.Processing OracleJava8JDK.munki...Failed.Processing MakeCatalogs.munki...
Failed.The following recipes failed:
OracleJava8.munkiNo trust information present. Audit the recipe, then create an override to trust it.OracleJava8JDK.munkiNo trust information present. Audit the recipe, then create an override to trust it.MakeCatalogs.munkiNo trust information present. Audit the recipe, then create an override to trust it.
--
You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discu...@googlegroups.com.
On Aug 2, 2016, at 6:36 PM, Eric Holtam <eho...@gmail.com> wrote:Interesting conversations and movement on this feature. I've cloned and tested the latest build on the branch on an autopkg clean system.What's the purpose of the --override-dir option?
autopkg run --helpUsage: autopkg run [options] [recipe ...]Run one or more recipes.
Options:-h, --help show this help message and exit
--pre=PREPROCESSOR, --preprocessor=PREPROCESSORName of a processor to run before each recipe. Can berepeated to run multiple preprocessors.--post=POSTPROCESSOR, --postprocessor=POSTPROCESSORName of a processor to run after each recipe. Can berepeated to run multiple postprocessors.-c, --check Only check for new/changed downloads.-k KEY=VALUE, --key=KEY=VALUEProvide key/value pairs for recipe input. Caution:values specified here will be applied to all recipes.-l TEXT_FILE, --recipe-list=TEXT_FILEPath to a text file with a list of recipes to run.-p PKG_OR_DMG, --pkg=PKG_OR_DMGPath to a pkg or dmg to provide to a recipe.Downloading will be skipped.--report-plist=OUTPUT_PATHFile path to save run report plist.
-v, --verbose Verbose output.-d DIRECTORY, --search-dir=DIRECTORYDirectory to search for recipes. Can be specifiedmultiple times.--override-dir=DIRECTORYDirectory to search for recipe overrides. Can bespecified multiple times.
autopkg verify-trust-info --helpUsage: autopkg verify-trust-info [options] recipe_override_name [...]Verify parent recipe trust information for a recipe override.Options:-h, --help show this help message and exit-l TEXT_FILE, --recipe-list=TEXT_FILEPath to a text file with a list of recipes to verify.-v, --verbose Verbose output.-d DIRECTORY, --search-dir=DIRECTORYDirectory to search for recipes. Can be specifiedmultiple times.--override-dir=DIRECTORYDirectory to search for recipe overrides. Can bespecified multiple times.
If it's to point to an override directory to parse thru to apply or verify trust info I'm not able to get it to work.
I've tried a few variations but it doesn't seem to do anything when used with verify-trust-info and update-trust-info.`autopkg verify-trust-info --verbose --override-dir=/Users/eholtam/Library/AutoPkg/RecipeOverrides/*.recipe``autopkg verify-trust-info --verbose --override-dir=/Users/eholtam/Library/AutoPkg/RecipeOverrides/``autopkg verify-trust-info --verbose --override-dir=~/Library/AutoPkg/RecipeOverrides``autopkg verify-trust-info --verbose --override-dir=/Users/eholtam/Library/AutoPkg/RecipeOverrides/ /Users/eholtam/Library/AutoPkg/RecipeOverrides/*.recipe`All result in zero feedback. It just jumps back to the prompt.
The only way I was able to get trust info to write to override by Greg's previous example of `autopkg update-trust-info ~/Library/AutoPkg/RecipeOverrides/*.recipe`
Another thing I noticed is when running a recipe with any level of verbosity there's no output about the recipe being successfully trusted. A clean run acts as if there is no trust information present. I'd think at least acknowledging the trust info is there and valid would be beneficial to some level of verbose output.
I've tried a few variations but it doesn't seem to do anything when used with verify-trust-info and update-trust-info.`autopkg verify-trust-info --verbose --override-dir=/Users/eholtam/Library/AutoPkg/RecipeOverrides/*.recipe``autopkg verify-trust-info --verbose --override-dir=/Users/eholtam/Library/AutoPkg/RecipeOverrides/``autopkg verify-trust-info --verbose --override-dir=~/Library/AutoPkg/RecipeOverrides``autopkg verify-trust-info --verbose --override-dir=/Users/eholtam/Library/AutoPkg/RecipeOverrides/ /Users/eholtam/Library/AutoPkg/RecipeOverrides/*.recipe`All result in zero feedback. It just jumps back to the prompt.Then we need better error messages! It should complain that you haven't given it any recipes to verify (because you haven't)
On Aug 2, 2016, at 7:50 PM, Eric Holtam <eho...@gmail.com> wrote:Other utilities use the method where ending a path with a trailing / means apply to the contents of the directory but that doesn't appear to be the case here. The first example below is just pathing to the directory. The second successful run is globbing that same directory path. Is that expected due to the shell globbing as well?$ autopkg update-trust-info ~/Library/AutoPkg/RecipeOverrides/Didn't find a recipe for /Users/eholtam/Library/AutoPkg/RecipeOverrides/.Cannot find a recipe for /Users/eholtam/Library/AutoPkg/RecipeOverrides/.$ autopkg update-trust-info ~/Library/AutoPkg/RecipeOverrides/*Wrote updated /Users/eholtam/Library/AutoPkg/RecipeOverrides/PS4RemotePlay.download.recipeWrote updated /Users/eholtam/Library/AutoPkg/RecipeOverrides/SizeUp.download.recipe
autopkg run ~/Library/AutoPkg/RecipeOverrides/Didn't find a recipe for /Users/gneagle/Library/AutoPkg/RecipeOverrides/.Search GitHub AutoPkg repos for a /Users/gneagle/Library/AutoPkg/RecipeOverrides/ recipe? [y/n]:
On Aug 2, 2016, at 8:07 PM, Eric Holtam <eho...@gmail.com> wrote:When a verification fails evaluating an override the error message is confusing. The message is "No trust information present. Audit the recipe, then create an override to trust it." but the override already exists and is the recipe that is being evaluated. My understanding is that these verbs would only be run on overrides in general, correct? Would instructing the admin to use update-trust-info instead be more beneficial. Something like: "No trust information present. Audit the parent recipe, then use update-trust-info to trust it."$ ./autopkg verify-trust-info -v ~/Library/AutoPkg/RecipeOverrides/*/Users/eholtam/Library/AutoPkg/RecipeOverrides/PS4RemotePlay.download.recipe: OK/Users/eholtam/Library/AutoPkg/RecipeOverrides/SizeUp.download.recipe: OK/Users/eholtam/Library/AutoPkg/RecipeOverrides/TextWrangler.download.recipe: FAILEDNo trust information present. Audit the recipe, then create an override to trust it.
On Tuesday, August 2, 2016 at 10:02:21 PM UTC-4, Greg Neagle wrote:On Aug 2, 2016, at 6:56 PM, Gregory Neagle <gregn...@mac.com> wrote:I've tried a few variations but it doesn't seem to do anything when used with verify-trust-info and update-trust-info.`autopkg verify-trust-info --verbose --override-dir=/Users/eholtam/Library/AutoPkg/RecipeOverrides/*.recipe``autopkg verify-trust-info --verbose --override-dir=/Users/eholtam/Library/AutoPkg/RecipeOverrides/``autopkg verify-trust-info --verbose --override-dir=~/Library/AutoPkg/RecipeOverrides``autopkg verify-trust-info --verbose --override-dir=/Users/eholtam/Library/AutoPkg/RecipeOverrides/ /Users/eholtam/Library/AutoPkg/RecipeOverrides/*.recipe`All result in zero feedback. It just jumps back to the prompt.Then we need better error messages! It should complain that you haven't given it any recipes to verify (because you haven't)Addressed here:-Greg
autopkg verify-trust-info MSLync.munkiMSLync.munki: FAILEDautopkg verify-trust-info MSLync.munki -vMSLync.munki: FAILEDNo trust information present.autopkg verify-trust-info MSLync.munki -vvMSLync.munki: FAILEDNo trust information present.Audit the parent recipe, then run:autopkg update-trust-info MSLync.munki
autopkg verify-trust-info Zulip.munkiZulip.munki: FAILEDautopkg verify-trust-info Zulip.munki -vZulip.munki: FAILEDNo trust information present.autopkg verify-trust-info Zulip.munki -vvZulip.munki: FAILEDNo trust information present.Audit the recipe, then store trust info by running:autopkg make-override Zulip.munki
-Eric
--
You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discu...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discuss+unsubscribe@googlegroups.com.
And now for an alternative view:
If I was a malicious actor, I'd create a recipe repo with a recipe that was perfectly valid and functional, and wait for many people to start using it.
Then later, I'd slip in my malicious changes, but in the same commit, introduce other changes, perhaps with lots of noise (meaningless extra changes), and provide a commit message that directed attention away from the malicious change.
So I'm not really sure providing commit messages is helpful from a security angle, if the author _intends_ mischief.
-Greg
> On Aug 5, 2016, at 8:44 AM, Gregory Neagle <gregn...@mac.com> wrote:
>
> Certainly we can try to give the admin information. But ultimately they are going to have to understand at least some things about what is going on. If we can give more _relevant_ info, great. If we can only present additional info that may or may not be relevant, I'm less inclined to do it.
>
> -Greg
>
>> On Aug 5, 2016, at 8:40 AM, Anthony Reimer <are...@ucalgary.ca> wrote:
>>
>> I definitely saw that as a possible issue. But since I didn't (and still don't) know what is possible in this regard, I thought the most recent (flagged as such) would at least be a starting point.
>>
>> Anthony Reimer
>>
>>
>>
>>> On Aug 5, 2016, at 9:35 AM, Gregory Neagle <gregn...@mac.com> wrote:
>>>
>>> What happens if the user runs repo-update foo, and pulls in several different commits because he/she hasn't run repo-update in a long time? The last commit may not be the _relevant_ commit. We'd want to see if we can extract _all_ of the commit messages since our git commit hash...
>>>
>>> -Greg
>>>
>>>
>>>> On Aug 5, 2016, at 8:30 AM, Anthony Reimer <are...@ucalgary.ca> wrote:
>>>>
>>>> Further to this specific point…
>>>>
>>>>> On Aug 5, 2016, at 8:40 AM, Tim Sutton <t...@synthist.net> wrote:
>>>>>
>>>>> I think for the vast majority of people who really care about verifying all recipe changes, they'll have to be comfortable parsing diffs because that's actually the point. It would just be also helpful to be able to see someone's reasoning behind the changes.
>>>>
>>>>
>>>> Can AutoPkg access the description and/or comment included with the latest commit? In the case Tim cites, just adding that one line could help separate the significant differences from the insignificant ones. Even a link to the commit on GitHub might be enough.
>>>>
>>>> In the case Tim cited, the ImageConverter.py processor had a multi-line comment attached to the commit (thanks, Greg) that makes it very clear what the changes do. Whether that is too much info is a point of discussion. And, of course, that info is only as good as the person who supplied it. But it might give additional guidance, especially to the less-experienced admin who is trying to adopt best practices.
>>>>
>>>>
>>>> Anthony Reimer
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discuss+unsubscribe@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discuss+unsubscribe@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discuss+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discuss+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discuss+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discu...@googlegroups.com.
On Aug 7, 2016, at 8:07 AM, Andrew Valentine <av1...@bristol.ac.uk> wrote:In my testing, it looks like FAIL_RECIPES_WITHOUT_TRUST_INFO needs an arbitrary value assigned to it to function as expected. Is that correct?
<false/><integer>0</integer><string></string> (an empty string)<array/> (an empty array)<dict/> (an empty dictionary)And possibly <real>0.0</real>
autopkg run OracleJava8.munki -k FAIL_RECIPES_WITHOUT_TRUST_INFO=yesProcessing OracleJava8.munki...
Failed.The following recipes failed:
OracleJava8.munki
No trust information present.Nothing downloaded, packaged or imported.
autopkg run OracleJava8.munki -k FAIL_RECIPES_WITHOUT_TRUST_INFO=""
Processing OracleJava8.munki...WARNING: OracleJava8.munki is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
Nothing downloaded, packaged or imported.
> defaults write com.github.autopkg FAIL_RECIPES_WITHOUT_TRUST_INFO -bool YES> ./mac-tools/autopkg/Code/autopkg run Go.munkiProcessing Go.munki...
Failed.
The following recipes failed:
Go.munki
No trust information present.
Nothing downloaded, packaged or imported.
> defaults write com.github.autopkg FAIL_RECIPES_WITHOUT_TRUST_INFO -bool NO
> ./mac-tools/autopkg/Code/autopkg run Go.munkiProcessing Go.munki...WARNING: Go.munki is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
Nothing downloaded, packaged or imported.>