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

🔑 Moving the API Key to xcconfig, .gitignoring, and open sourcing. #21

Open
ricburton opened this issue Mar 22, 2024 · 1 comment
Open

Comments

@ricburton
Copy link
Collaborator

I got this wrong at the start. Need some help doing this correctly. May have to squash all previous work and make it in a fresh place.

`ric@Richards-MacBook-Pro her % cd her
ric@Richards-MacBook-Pro her % ls
Assets.xcassets HerAnimation.mp4 LaunchScreen.storyboard Utilities
Components HerApp.swift MainView.swift Views
Config.xcconfig Info.plist Managers whisp.png
ric@Richards-MacBook-Pro her % open .gitignore
The file /Users/ric/Desktop/Her/Her/.gitignore does not exist.
ric@Richards-MacBook-Pro her % cd ..
ric@Richards-MacBook-Pro her % cat .gitignore
Config.xcconfig
.DS_Store
xcuserdata/%
ric@Richards-MacBook-Pro her % cd her
ric@Richards-MacBook-Pro her % ls
Assets.xcassets HerAnimation.mp4 LaunchScreen.storyboard Utilities
Components HerApp.swift MainView.swift Views
Config.xcconfig Info.plist Managers whisp.png
ric@Richards-MacBook-Pro her % cat Config.xcconfig
//
// Config.xcconfig
// Her
//
// Created by Richard Burton on 05/03/2024.
//

// Configuration settings file format documentation can be found at:
// https://help.apple.com/xcode/#/dev745c5c974
ric@Richards-MacBook-Pro her %`

@mikejonas
Copy link
Collaborator

mikejonas commented Mar 25, 2024

This is definitely a good idea. I don't know the best patterns for key management in a swift project, but can look into it if nobody else with more swift experience can take this task.

If you're primarily worried about your vapi api key, you might be able to reach out to vapi and have them reset your key. In more mature applications, they'll have a way for you to regenerate it in the dashboard ui, but they don't have that yet.

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