Giter VIP home page Giter VIP logo

homebrew-tools's Introduction

homebrew-tools

Homebrew formulas for CyberArk tools.

Usage

brew tap cyberark/tools
brew install summon  # or whatever you like

Contributing

We welcome contributions of all kinds to this repository. For instructions on how to get started and descriptions of our development workflows, please see our contributing guide.

homebrew-tools's People

Contributors

bradleyboutcher avatar doodlesbykumbi avatar dustinmm80 avatar garymoon avatar gl-johnson avatar hughsaunders avatar izgeri avatar jakequilty avatar john-odonnell avatar jtuttle avatar kgilpin avatar rpothier avatar sgnn7 avatar szh avatar tabacco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebrew-tools's Issues

Default branch change breaks brew update

fatal: couldn't find remote ref refs/heads/master
Error: Fetching /usr/local/Homebrew/Library/Taps/cyberark/homebrew-tools failed!
Error: Some taps failed to update!
The following taps can not read their remote branches:
  cyberark/tools
This is happening because the remote branch was renamed or deleted.
Reset taps to point to the correct remote branches by running `brew tap --repair`
brew tap --repair
fatal: couldn't find remote ref refs/heads/master
Error: Failure while executing; `git -C /usr/local/Homebrew/Library/Taps/cyberark/homebrew-tools fetch origin` exited with 128.

Unable to tap cask on Apple silicon

Summary

If you try to do brew tap cyberark/tools on a Apple sillicon computer (M1-powered) you get an error about missing url in Serverless-broker

Steps to Reproduce

  1. brew tap cyberark/tools

It's possible it can be reproduced on non-Apple silicon using arch -arm64 brew tap cyberark/tools (you'll probably need to untap first, then tap with the arch changed)

Expected Results

The cask is tapped successfully.

Actual Results

Error: Invalid formula: /opt/homebrew/Library/Taps/cyberark/homebrew-tools/secretless-broker.rb
formulae require at least a URL

This is likely because the formulae for secreless-broken only defines the url inside a if that looks for the hardware arch.

If the app in question only exists for Intel-powered Macs, it's might be possible to use something like depends_on arch: :intel in the Formulae (see https://docs.brew.sh/Cask-Cookbook#depends_on-arch).
It will still need to set the url-property, but it'll refuse to install on Apple silicon, which is better than the whole cask failing.

Reproducible

  • Always
  • Sometimes
  • Non-Reproducible

Environment setup

  • Apple Silicon powered laptop

Apple Silicon support

$ brew tap cyberark/tools
==> Tapping cyberark/tools
Cloning into '/opt/homebrew/Library/Taps/cyberark/homebrew-tools'...
...
Error: Invalid formula: /opt/homebrew/Library/Taps/cyberark/homebrew-tools/summon-conjur.rb
formulae require at least a URL
Error: Invalid formula: /opt/homebrew/Library/Taps/cyberark/homebrew-tools/summon.rb
formulae require at least a URL
Error: Invalid formula: /opt/homebrew/Library/Taps/cyberark/homebrew-tools/terraform-provider-conjur.rb
formulae require at least a URL
Error: Cannot tap cyberark/tools: invalid syntax in tap!

amd64 binary seems to work fine, so maybe just amend the Hardware::CPU.intel? conditional in the formula.

Summon installs on M1 macs can't find providers in default path

Summary

When installing Summon via homebrew on an M1 Mac, providers won't be found in the default path (/usr/local/lib/summon).

This is because Homebrew has different default install paths on the two Apple architecture:
Apple Silicon: /opt/homebrew
Intel: /usr/local

This can be worked around with export SUMMON_PROVIDER_PATH=/opt/homebrew/lib/summon but I'd expect the default install to work out of the box.

I'm not sure if this bug belongs here or in the summon repo, let me know and I'm happy to reopen over there if needed. It only affects Homebrew, but I think the fix would need to be in summon itself.

Steps to Reproduce

  1. On an M1 Mac, install Homebrew via their provided install script: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. brew tap cyberark/tools
  3. brew install summon summon-aws-secrets
  4. summon -V

Expected Results

$ summon -V
summon-aws-secrets version 0.4.1

Actual Results

$ summon -V
open /usr/local/lib/summon: no such file or directory

Reproducible

  • Always
  • Sometimes
  • Non-Reproducible

Version/Tag number

Summon 0.9.1

Environment setup

  • M1 Macbook Pro (through this will happen on any MacOS install where Homebrew prefers /opt/homebrew over /usr/local)

Additional Information

I used summon-aws-secrets as an example here but this issue should be true of any provider installed via Homebrew.

Warning: Calling bottle :unneeded is deprecated! There is no replacement.

Summary

Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the cyberark/tools tap (not Homebrew/brew or Homebrew/core):
  /usr/local/Homebrew/Library/Taps/cyberark/homebrew-tools/summon-conjur.rb:9

Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the cyberark/tools tap (not Homebrew/brew or Homebrew/core):
  /usr/local/Homebrew/Library/Taps/cyberark/homebrew-tools/summon.rb:9

Steps to Reproduce

Steps to reproduce the behavior:

  1. brew update

Expected Results

No deprecation warning.

Actual Results (including error logs, if applicable)

See above.

Publish the keyring provider in this homebrew tap

Is your feature request related to a problem? Please describe.

I would like to install Summon / Summon Keyring provider using homebrew, but the keyring provider isn't available here, which means I can install Summon here but I have to follow a manual process with multiple steps for installing the keyring provider.

Describe the solution you would like

Add the Summon Keyring provider to this tap - I'm not 100% sure what the UX would be (you still need to pip install keyring I'd guess), but maybe it would be better?

broken download links in summon-conjur.rb

they are two occurrences of missing character v before version number

if OS.mac?
url "https://github.com/cyberark/summon-conjur/releases/download/0.5.4/summon-conjur-darwin-amd64.tar.gz"
sha256 "69fedac08d83f95b525eb645bb8ed7d867f5cf01d9f96dfd0254f51bf131fbf0"
end
if OS.linux? && Hardware::CPU.intel?
url "https://github.com/cyberark/summon-conjur/releases/download/0.5.4/summon-conjur-darwin-amd64.tar.gz"
sha256 "b6aca46413b5ab4023f5cbd561d24ed3ae67b4727f77813d0bf5497bdb0c2707"
end

must be (v added before 0.5.4)
if OS.mac?
url "https://github.com/cyberark/summon-conjur/releases/download/v0.5.4/summon-conjur-darwin-amd64.tar.gz"
sha256 "69fedac08d83f95b525eb645bb8ed7d867f5cf01d9f96dfd0254f51bf131fbf0"
end
if OS.linux? && Hardware::CPU.intel?
url "https://github.com/cyberark/summon-conjur/releases/download/v0.5.4/summon-conjur-darwin-amd64.tar.gz"
sha256 "b6aca46413b5ab4023f5cbd561d24ed3ae67b4727f77813d0bf5497bdb0c2707"
end

summon-aws-secrets formula has broken download URL

Summary

The summon-homebrew-formula formula has a broken download link. The download link refers to the summon repo, not the summon-aws-secrets repo. Otherwise, the URL looks correct.

Steps to Reproduce

brew tap cyberark/tools
brew install summon-aws-secrets

Expected Results

Installs summon-aws-secrets

Actual Results

==> Downloading https://github.com/cyberark/summon/releases/download/v0.4.1/summon-aws-secrets-darwin-arm64.tar.gz
curl: (22) The requested URL returned error: 404

Error: summon-aws-secrets: Failed to download resource "summon-aws-secrets"
Download failed: https://github.com/cyberark/summon/releases/download/v0.4.1/summon-aws-secrets-darwin-arm64.tar.gz

Reproducible

  • Always
  • Sometimes
  • Non-Reproducible

Version/Tag number

Attempting to install latest (0.4.1)

Environment setup

n/a

Additional Information

Problematic lines:
https://github.com/cyberark/homebrew-tools/blob/master/summon-aws-secrets.rb#L12
https://github.com/cyberark/homebrew-tools/blob/master/summon-aws-secrets.rb#L21
https://github.com/cyberark/homebrew-tools/blob/master/summon-aws-secrets.rb#L33

I believe the fix is as easy as updating the URL to refer to cyberark/summon-aws-secrets instead of cyberark/summon. I'd open a PR but this looks like it's generated by goreleaser

Error: cyberark/tools/terraform-provider-conjur: undefined method `[]' for nil:NilClass

@@artifact = @@artifacts["terraform-provider-conjur_#{@@ver}_#{OS.kernel_name.downcase}_#{GithubUpdate.arch(Hardware::CPU.type)}.zip"]

When installing the terraform-provider-conjur:

brew tap cyberark/tools && brew install terraform-provider-conjur

The error message returned is:

Error: cyberark/tools/terraform-provider-conjur: undefined method '[]' for nil:NilClass

The line shared above is the only line where a hash table array is formed that would cause an undefined method on [].

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.