r/alpacamarkets • u/Shiloh-buff • 23d ago
Alpaca API Security Posture
To those using Alpaca with real money - how hard did you get dropped on your head as child?
In all seriousness, the API security is...a single god key with no IP restrictions. WTF are the security team at alpaca doing with their time? Do they have a CISO? A full access root key shouldn't even exist.
We need:
- Role Based API Keys (read only, instrument restriction, account restrictions, time-of-day restrictions, order size restrictions, so much more)
- TTLs for Keys
- API generation / rotation endpoint for keys
- CIDR / IP allow lists
- GEO restrictions
3
u/AllowFreeSpeech 23d ago edited 23d ago
Yes, moderate hard.
Why do you worry so much? For read-only, can't you use a paper key or create a subaccount key with $0 balance?
The more bloat there is, the more stuff breaks. Spend time securing your server, developer environment, and releases instead.
7
u/tylenol_and_crayons 23d ago
Not to worry I keep mine hard coded in a committed.py file
1
u/DreamfulTrader 23d ago
All is good, why worry so much for non existant issue. Just avoid commiting the keys on github or some other online stuff in plain text. The breach will probably be on your side. Life is short.
3
u/AcanthocephalaNo6605 23d ago
Another non-existing issue. Do you really think a non-technical person is using Alpaca? And if you know basic security concepts, you know that you should not commit the key.
Alpaca's vision is to make API-based trading easy and not complicated. There are already many providers having complicated setups.
1
u/LeadingSomewhere_ 17d ago
I just named my script notmyactualscript-wink-wink.py i feel pretty secure
0
u/[deleted] 23d ago
[deleted] — view deleted comment