Project secrets
Introduction
redpesk CI/CD operations may need sensitive information, called secrets, to complete their jobs. This sensitive information can be items like API tokens or private keys. Secrets are stored in a secured service (vault) that is part, or not, of the redpesk factory.
A secret is a key+value data pair. The key name (KEY_NAME) is used to refer to
the secret in various places: eg. git sources URL, external spec file URL, source code…
The syntax to refer to a secret is ${{secrets.KEY_NAME}}, where KEY_NAME is the name
of your secret. When the special ${{secrets.KEY_NAME}} keyword is detected by the
redpesk factory, it is replaced by the secret’s value retrieved from the vault.
For example, here below is the webUI way to create a secret named myToken, with a secret value equal to 123456789.
Then all the occurrences (URL settings, file content…) of the string ${{secrets.myToken}} will be evaluated and replaced by the value of the secret (here 123456789).

Secrets can be used in various steps of your application or image build process.
Here are some places where secrets can be used in an application settings:
| Where | WebUI view | rpcli command or line example |
|---|---|---|
| source URL to refer an access token | Project > Application > Settings : Source URL | rpcli application update my-app --source-url 'https://${{secrets.myToken}}@gitlab.com/myrepo' |
| external spec file URL | Project > Application > Settings : spec file, External URL | rpcli application update my-app --specfile-type external_url --specfile-location 'https://${{secrets.myToken}}@gitlab.com/myrepo/-/raw/master/my-app.spec' |
| some application services | Project > Application > Settings : Application Services, Import external SRPM | rpcli application update my-app --service '{"parameters":{"url":{"value":"https://${{secrets.myToken}}@gitlab.com/myrepo/-/raw/master/my-app.spec"}}} |
| in spec file SOURCE tag | Project > Application > File Manager : spec file | SOURCE1: https://${{secrets.myToken}}@server/file.zip |
| in spec file | Project > Application > File Manager : spec file | in sections or in macros for example: %build MY_SECRET=${{secrets.SECRET1}} make build
|
| in kickstart URL | Project > Image > My Image > Advanced settings: Kickstart git repo URL | rpcli application update my-image --ks-url 'https://${{secrets.myToken}}@gitlab.com/myrepo/-/raw/master/my-ks.ks' |
| in kickstart | in git repository | in some parameters of kickstart commands: for example:rootpw --iscrypted ${{secrets.MYPASSWORD}}or in sections for example: %postecho ${{secrets.myappcrt}} > /etc/pki/myapp/app.crt%end
|
Secrets are defined in the context of a project’s environment, allowing
different secret values for different project environments.
In other words, the same secret key (eg. ${{secrets.MY_SECRET_NAME}}) will be
set to :
- value
Awhen building an application in the context of project’s environment namedprod - value
Bwhen building an application in the context of project’s environment nameddev
A secret cannot be updated, if you need to change the secret value, you must first delete the secret and re-create it with the new value.
Listing existing secrets
WebUI
Browse to your project settings view and open the Project secrets section.
Note that secrets are defined per project’s environment, so take care to select
the right environment.
WARNING: in factory release Armel 1.10, secrets are fully independents from one environment to an other. That means you need to create manually the same secret key for each environment

rp-cli
Use projects secrets list command following by your project name (here ‘demo’) :
$ rpcli projects secrets list demo
Key Created_at
GithubCloneToken 2025-11-21 15:05:28.990175506 +0000 UTC
my_secret 2025-11-21 15:05:36.050910457 +0000 UTC
Creating a secret
Secrets management is per project’s environment, so take care to select the right environment.
Note: only manager or developer roles can create secrets.
WebUI
To create a secret, browse to your project settings view and open the
Project secrets section. Then click on the + Secret button and fill the
secret name and value fields.

rp-cli
Use projects secrets add command:
$ rpcli projects secrets add demo my_secret --value 1234
-- Secret creation requested by user --
Request the factory to add the secret... [OK]
Deleting a secret
Secrets management is per project’s environment, so take care to select the right environment.
Note: only manager or developer roles can delete secrets.
WebUI
Browse to your project settings view and open the Project secrets section and use trash icon to delete the secret.
rp-cli
Use projects secrets delete command:
$ rpcli projects secrets delete demo my_secret
-- Secret deletion requested by user --
Request the factory to delete the secret... [OK]
Usage within local builder
The local builder eases development of application packaging (eg. spec file
development, tuning).
For security reasons, secrets (and specifically secrets value) cannot be automatically
retrieved during local package initialization (command: rpcli local package init).
You thus need to manually set secrets value following the procedure described in local builder project packaging chapter.