Skip to content

Commit

Permalink
[EDU-5576] Add secret variables rules (CLI) (#1366)
Browse files Browse the repository at this point in the history
* feat: secret variables rules on sync command

* feat: secret variables rules on create command
  • Loading branch information
guiafonso-ol authored Nov 11, 2024
1 parent bbfecca commit c1e3b80
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,21 @@ The `--value` flag provides the variable's value.

The `--secret` flag indicates whether the value is meant to be confidential. The default value is `true`.

:::note
Variables with names containing the following substrings will be sent as **secrets** to the Azion environment by default:

- password
- pwd
- secret
- key
- hash
- encrypted
- passcode
- auth
- token
- secret
:::

#### Optional flags

#### file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,22 @@ The `--config-dir` option is used to specify the relative path to where your cus
#### help

The `--help` option displays more information about the `sync` command.

#### env

The `--env` option is used to specify the relative path to where your custom `.env` file is stored. The default is `.edge/.env`.

:::note
In your `.env` file, variables with names containing the following substrings will be sent as **secrets** to the Azion environment:

- password
- pwd
- secret
- key
- hash
- encrypted
- passcode
- auth
- token
- secret
:::
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,21 @@ A flag `--value` fornece o valor da variável.

A flag `--secret` indica se o valor deve ser confidencial. O valor padrão é `true`.

:::note
Variáveis com nomes contendo as seguintes substrings serão enviadas como **secrets** para o ambiente da Azion por padrão:

- password
- pwd
- secret
- key
- hash
- encrypted
- passoce
- auth
- token
- secret
:::

#### Flags opcionais

##### file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,22 @@ A opção `--config-dir` é usada para especificar o caminho relativo onde seus
#### help

A opção `--help` exibe mais informações sobre o comando `sync`.

#### env

A opção `--env` é usada para especificar o caminho relativo onde seu arquivo `.env` personalizado está armazenado. O padrão é `.edge/.env`.

:::note
Em seu arquivo `.env`, variáveis com nomes contendo as seguintes substrings serão enviadas como **secrets** para o ambiente da Azion:

- password
- pwd
- secret
- key
- hash
- encrypted
- passoce
- auth
- token
- secret
:::

0 comments on commit c1e3b80

Please sign in to comment.