Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cocoapods-keys as a dependency in podspec #210

Open
shivaiahmahesha opened this issue Aug 28, 2020 · 2 comments
Open

cocoapods-keys as a dependency in podspec #210

shivaiahmahesha opened this issue Aug 28, 2020 · 2 comments

Comments

@shivaiahmahesha
Copy link

Hi all,

Im developing a private pod and which has static AuthKeys for API authentication inside my pod.
For the security purposes i wanted to store these keys inside the keychain and wanted to use the feature of cocoapods-keys.
I would be using .env file to have these keys and upon pod install these would be added to keychain, but now i wanted to know how can i use these keys inside my private pod.

Any help would be really appreciated.
Thanks.

@ashfurrow
Copy link
Collaborator

.env file support was added here: #106 But this bypasses the keychain, so it doesn't sound like what you want. As for the private pod, it's probably doable but an easier solution would be for your pod to accept the keys as arguments/parameters, and then inject them in from the app. Otherwise, the pod would need to set up a dependency on the Keys pod, which gets tricky because that pod is only generated in a CocoaPods install hook. I hope that helps!

@shivaiahmahesha
Copy link
Author

Got it.
I guess accepting the keys a parameter to my private should be a secured way.
Let me check on this in my pod.

Thanks a lot @ashfurrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants