pricing question: does a Service Token count as an...
# infisical-help
j
pricing question: does a Service Token count as an “identity” seat and cost, if i’m on the Pro plan? or can I create Service Tokens for free.
s
@Joseph Szobody TLDR; No, service tokens are just an authentication mechanism - there is not hard limit on the number of service tokens you can create (Even on the free plan). If you would like to learn more about the differences give this a read https://infisical.com/docs/documentation/platform/identities/machine-identities#what-is-the-difference-between-an-identity-and-service-token
j
Well that sounds super! Exception for the deprecation plan, heh. 😃
s
Yes we are trying to move away from service tokens to identities, though you can create as many "Token Auth" tokens for an identity if that's all that you need.
j
Can an Access Token though “never” expire? That was an option with STs, but in the docs it appears that ATs must have some TTL
s
See that is the cool thing about identities - you're not restricted to one auth method. If you want a way that never expires - you should give "Universal Auth" a shot.
image.png
j
yup, i’ve done that too. just considering options here. for context: i’m trying to build a POC package for Laravel devs https://github.com/stechstudio/laravel-infisical
🙌 1
our team is excited to switch to Infisical, and this would be a community package for other Laravel folks. i’m exporting all secrets to .env on deploy, instead of making any sort of realtime calls. but that means an app that rarely gets deployed might… rarely have an opportunity to refresh a time-limited token.
i suppose machine identities with universal auth is the way to go here. i shouldn’t even encourage folks to use tokens directly at all, unless i have a cronjob that refreshes them, heh.
s
> i suppose machine identities with universal auth is the way to go here. i shouldn’t even encourage folks to use tokens directly at all, unless i have a cronjob that refreshes them, heh. Yeah exactly, adding TTL means you will have to setup some way to refresh the tokens aswell. Good work on the package! Let us know if you come across any issues
j
I’ve read through the whole universal-auth and token-auth docs, nowhere do i see where I could scope a machine identity for specific environment. with service tokens, i can create one for staging specifically, to ensure it can’t accidentally pull production secrets. that’s huge. how would i accomplish that with universal auth or identity based token auth? feel like i’m missing something
t
Hey @Joseph Szobody! Have you checked out the documentation here? https://infisical.com/docs/documentation/platform/access-controls/role-based-access-controls
The screenshots are a bit outdated (we're updating them at the moment) but you should be able to create a role with access to specific environment(s) and path(s) and assign that role to a machine identity. This would give it scoped access to the environment
j
i have! my (rough) understanding of that process means i would now need a separate machine identity for each environment. this is starting to get really expensive… 😅
t
You can also achieve it with additional privileges as well as documented here which lets you achieve that scoping but without needing to define a specific role: https://infisical.com/docs/documentation/platform/access-controls/additional-privileges
j
you can see what i’m trying to do here: set up access for my different environments that are scoped, and long lived, but ideally without paying for dozens of identity seats. if i have a dozen apps, three environments each… oof!
service tokens are just perfect. i love them. i wish i could keep those. they give me all the scoping i need in one little token config. easier to manage, and a whole lot cheaper.
t
I see; I'll take this feedback to the team and see what we can do about it in terms of the roadmap ahead etc. I know there're various plans to improve things around permissioning mechanisms etc. so there might be something there. Alternatively, feel free to ping @Vlad (Infisical) who might be able to help depending on the use-case / size of deployment as well
j
super, thanks for jumping in. worth noting i’m also trying to figure out how to encourage my fellow Laravel devs (who frequently manage plaintext .env files in their deployment tool, ouch) to get on board with this sort of thing. “pay for your human identities, get environment-specific service tokens for your deployments for free” is a great angle.