Understanding role management
To ensure you are on the right path in terms of using LaunchDarkly, the last topic we will cover in this chapter is role management. So far, we have been working with the Test environment of our Default Project as that's the safest way to approach using LaunchDarkly and roles, as well as their associated permissions. This allows us to continue to work with the tool in this manner. We want to restrict who can change flags and targeting rules within the production environment, but other environments are likely to be less restrictive so that our teams can remain productive. Role management can enable these types of scenarios, and many more, through its powerful permission system.
However, before we look at role management, it is worth considering how to work between different environments of a LaunchDarkly project. Right now, our app has the SDK key hardcoded within the code base, which is a bad practice. Instead, we should be using a tool to achieve...