No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Gopkg.lock
Gopkg.toml
README.md
main.go
pkgsinfo.go

README.md

simian-import is a go binary to upload pkgsinfo files to Simian. This enables autopkg integration, even though the uploadpkg view/endpoint for Simian was deprecated. To test the upload to your Simian instance, install the gcloud command line tool and authenticate with the AppEngine instance as your default project. Currently you need to supply a name for the 'pkg' (or dmg) being uploaded. In the future this may be extended to also upload to a Google Storage bucket.

You may not like the defaults built-in, namely that it assumes the 'safer' route of only allowing the uploaded item to be a managed update, to prevent patches going out that aren't necessarily on all computers, but should be updated if present (e.g. Skype). It also allows manifest modification for support and security staff, since they only have access to alter Users, anyway. You will need to alter the code and rebuild the binary for your preference if you'd like different behavior.

The autopkg processor found here enables auto-upload to an AWS CloudFront-ed S3 bucket and injects that PackageCompleteURL into the pkginfo before simian-import'ing. It bails if the pkg already exists in the bucket, but remember to MakeCatalogs on a 'scratch' local munki repo so that __1-appended duplicates aren't uploaded. Note that the processor allows world-read on the package as if it's not proprietary, so keep any 'secret' data either in the pkgsinfo (or forego using the processor and call the binary directly).

This was originally created as a hackathon project for MacDevOpsYVR 2017