Infisical / infisical

♾ Infisical is the open-source secret management platform: Sync secrets across your team/infrastructure, prevent secret leaks, and manage internal PKI
https://infisical.com
Other
14.94k stars 840 forks source link

What is the way to reference secret with dot inside name, like `.htpasswd` #1331

Closed istarkov closed 1 month ago

istarkov commented 7 months ago

Feature description

Some variable keys contains special symbols like dot, / etc How I can reference variable with dot inside?

${dev..htpasswd} is not working ${dev.\.htpasswd} same

Why would it be useful?

Some secrets for easy of use has keys with dots, keys like urls etc. Would be good to have ability to reference them like any other vars.

maidul98 commented 7 months ago

cc: @akhilmhdh

rawkode commented 7 months ago

It would be nice to see an option to replace . as the folder differentiator and instead use /.

In my mono repository, I was using the domains as directory names, such as rawkode.academy and this meant I couldn't replicate that structure within Infisical.

akhilmhdh commented 7 months ago

@istarkov @rawkode Good one. Changing the path name or differentiator is good choice but may be making it too complex.

We will introduce escape string so that u can put dot as needed in references.