Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Noren11577ySorry, i was in rush...
The only secure way is to store the secrets on a server and call the APIs from there and host your own API just for the App -
Noren11577y@D--M
Thats not quite true. Just the move to the server allows the app to provide unlimited access to the APIs without publish the API secrets...
Unfortunately everyone can access your API, but you can always block them per Firewall...
Of course i recommend you a better authentication system for your own API. Let the server generate access tokens for each App installation, so you are able to restrict the access to some users if they abuse the system...
In case someone generates thousend access tokens you can block his ip or throttle the generator -
Noren11577y@D--M
I think you misunderstood something... you never allow to download any API Key or Secret...
Here an Example:
An App which wants Addresses, A Public Server whith an API and your Server.
App --getAddresses--> Your Server
Your Server --getAddresses(with Appsecret)--> Public Server
Your Server <--Data-- Public Server
App <--Data-- Your Server -
Noren11577y@D--M
Ah there is the difference...
If APIs from Android exist which secrets are needed, then you are fucked...
I dont think that google has something like this, that would be stupid. -
Very informative guys! Thanks! My backend is actually Parse Server that runs on a machine I own ( well.. pay) but still needs an API to access the parse sdk for the db and stuff.. Could I enforce the scheme you discussed on this case?
Related Rants
Is there an acceptable way to deal with API secrets in an Android app that can cure the anxiety that is slowly taking over me during the past few hours that I am researching about it? Thnx.
p.s. I am not sure how people that work in security can go on with their lives and not have suicidal tendencies
rant
nihilism
android
secrets
security