Skip to content

Instantly share code, notes, and snippets.

@bsrz
Last active May 7, 2023 02:46
Show Gist options
  • Select an option

  • Save bsrz/4ff0817449bf043b34bf31a2cc9fcbd9 to your computer and use it in GitHub Desktop.

Select an option

Save bsrz/4ff0817449bf043b34bf31a2cc9fcbd9 to your computer and use it in GitHub Desktop.

Where do you store your secrets?

enum Secrets {
enum AWS {
static let clientId = "<your client id>"
}
enum CoolThirdPartyService {
static let apiKey = "<your cool api key>"
}
}
repo: [email protected]:bsarrazin/my-ios-project-secrets.git
passphrase: SEKRIT_PASSPHRASE_MY_IOS_PROJECT
bundles:
- id: io.srz.my.ios.project
bundled_files:
encrypted:
- fastlane/AuthKey.json # used to interact with AppStore Connect API
- MyProject/Resources/GoogleService-Info.plist # used by Firebase
- MyProject/Secrets.swift # all other API keys
$ sekrit pull --bundle_id io.srz.my.ios.project --git_ref main
$ sekrit push --bundle_id io.srz.my.ios.project --git_ref main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment