FIRST: Revoke the secrets from whatever assets or platform they provide access to
Assume that the keys have already fallen in to the hands of bad actors, and immediately change the locks so that the keys are no use.
/// The file is stored in an encrypted format on disk and | |
/// cannot be read from or written to while the device is locked or booting. | |
Complete Protection (NSFileProtectionComplete) |
Name | Development Language | |
---|---|---|
React Native | Javascript | |
Flutter | Dart | |
Xamarin | C# | |
Ionic | Javascript (webviews) |
cd ~/src | |
git clone --mirror git@github.com:my-git-name/RepoWithExposedSecrets.git | |
java -jar ~/bin/bfg-1.14.0.jar --delete-files Credentials.json RepoWithExposedSecrets.git |
cd ~/src/RepoWithExposedSecrets.git | |
git reflog expire --expire=now --all && git gc --prune=now --aggressive |
# Get the SSH clone link from your repo and check it out with a distinctive name | |
mkdir -p ~/src && cd ~/src | |
git clone git@github.com:my-git-name/RepoWithExposedSecrets.git\ | |
freshRepoWithExposedSecrets |
curl -O https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar | |
mkdir -p ~/bin | |
mv -f bfg-1.14.0.jar ~/bin/. | |
java -jar ~/bin/bfg-1.14.0.jar |
# Install Android Studio then add these lines to your ~/.bash_profile | |
# Java from Android SDK | |
export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home" | |
export PATH="${JAVA_HOME}/bin:${PATH}" |
# Creates a portable SSH key that can be offered to any GCP Compute instance you have access to, eg via Google domain login | |
# Pre-requisites - gcloud Google command line tool. - https://cloud.google.com/sdk/docs/quickstart | |
curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-322.0.0-darwin-x86_64.tar.gz -o google-cloud-sdk.tar.gz | |
open -g google-cloud-sdk.tar.gz | |
./google-cloud-sdk/install.sh | |
source ~/.bash_profile | |
# Setup Google login, compute zone, region and project |
Copyright 2019 Smithsoft Pty Ltd | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |