In this, like we have a look on how we can manage secrets when using Gottleib, you generally do not
want to keep any credentials and generally even usernames or passwords or tokens, anything that is
sensitive.
You do not want to commit that in your pipelines or in any files or something like that.
So anything that goes inside it shouldn't contain tokens, passwords, secrets or something like that.
And get Lexia offers us a convenient way in order to store such secrets.
Now, the goal is to be able to use catalepsy in order to deploy the website to search.
And as you have seen, we have this interactive interface where you using our email and password.
And this is something that's, of course, not available in Getler because you cannot interact with
this tool and start typing in things.
And generally you do not want to use username and password in order to do deployments.
And such tools offer the possibility of using tokens in order to login.
So instead of using your username and password, you supply this token and you can even look later revoked
a token.
If, for whatever reason you think it has been compromised without actually changing your username and
password, without exposing them in this case.
So let's call first the search and generate a token.
I still have my seal opened and what I need to do is to type in search Galchen.
And I'm sort of still locked in with search and search has then generated this token for me.
Let's go to get dot com and see where we can manage the cigarettes.
From the sidebar on your project, you should be able to see it right here at the bottom settings and
if you hover over it, just go to secede.
And right here in the middle, you'll see environment variables and environment variables, as it says
here, are applied to environments when using the runner so we can define here variables and these variables
will be injected by Gottleib and will be available in the runner.
So let's expand this and add our secrets here.
So we're going to create two different variables.
I'm going to use a variable called Surge Log-in and this will be our account.
So your e-mail address that you have used to register for search.
And the second environment variable that will create is surge token, so surge underscore token, and
this is the token that you have been given in the Seelie.
So let's go ahead and save these variables.
Once you have saved this information, you will no longer seat, but just in case you want to check,
if everything is still OK, you can click here or reveal values and you will see the original values.
So that's about it.
This is how you can save and manage secrets in your lap by using environment variables and as I said,
this environmental variables will be later available when you're running the jobs.