Skip to content

vitalbeats/fastlane-plugin-cryptex

 
 

Repository files navigation

IMPORTANT NOTE: PAY ATTENTION

This is a fork that adds a fix to avoid the process to hang in the step origin list when fastlane runs.

Because the proposed fix (this fork only applies it) hasn't been merged and the fix is important and try to create a different gem just to apply that fix is too cumbersome and unnecessary following steps must be done in VB project to make it work.

references

REQUIREMENT

  • ruby 2.6.5 (ruby 2.6.1 in Big Sur has issues with thor when rake is executed)

STEPS before going back to project

Before going back to project and to use the gem created in this step some manual actions must be done.

  1. delete any fastlane-plugin-cryptex gem installed
$> gem uninstall fastlane-plugin-cryptex
$> bundle remove fastlane-plugin-cryptex
  1. execute:
$> bundle install
$> rake install

NOW YOU CAN GO BACK TO THE PROJECT KNOWING THE GEM IS INSTALLED

==================

Cryptex for fastlane

fastlane Plugin Badge

About cryptex

Manage files - crypted - in a git repository. adds fastlane actions, and also ships a cryptex binary.

  • all kinds of files
  • ENV variables

Setup

This project is a fastlane plugin. To get started with fastlane-plugin-cryptex, add it to your project by running:

fastlane add_plugin cryptex

Example

lane :test do
  # Generate a new Android Keystore
  
  cryptex_generate_keystore(
    destination: "sample.keystore",
    fullname: "Helmut Januschka",
    city: "Vienna",
    alias: "releaseKey"
  )

  # import/update this in cryptex
  cryptex(
    type: "import",
    in: "sample.keystore",
    key: "my_awesome_app_production"
  )

  # export a file from cryptex
  cryptex(
    type: "export",
    out: "releaseKey.keystore",
    key: "my_awesome_app_production"
  )

  file_output = File.read("../releaseKey.keystore")
  puts "File Content: #{file_output.tr("\n", ' ')}"

  # delete the file
  cryptex(
    type: "delete",
    key: "my_awesome_app_production"
  )

  # Nukes all files
  cryptex(
    type: "nuke"
  )
  
  
  #ENV SAMPLES
  #import some env into the space of `my_group`
  cryptex(
    type: "import_env",
    hash: {
      "helmut" => "go",
      "some_url" =>  "http://lets.do.it"
    },
    key: "my_group"
  )
  env_out = cryptex(
    type: "export_env",
    key: "my_group",
    set_env: true #THIS one sets the values found directly into to ENV
    #hash: {"my_key"=>true, "some_url"=>true} # only returned specific keys
  )
  
  puts "IN ENV it is:"
  puts ENV['some_url']
  puts "returned: #{env_out.inspect}"
  
end

Commandline Examples:

#init
cryptex init

# import file
cryptex -s import -i file_to_hide.txt -k file_key

# export file
cryptex -s export -k file_key -o file_to_hide.txt

#delete file
cryptex -s delete -k file_key

#nuke repo
cryptex nuke

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%