Skip to content

Generate new ID on initiating project. #1

@mehdiMj-ir

Description

@mehdiMj-ir

Hi, First of all thanks for your considerations and creating this repository.

For more security stand point I suggest generating new client id on initiating project, using cat /proc/sys/kernel/random/uuid or a for loop on setup.sh

for CLIENT in $(grep -c CLIENT1,CLIENT2,CLIENT3 config/config.json); do
  sed -i "s/CLIENT/$(cat /proc/sys/kernel/random/uuid)/g" config/config.json;
done

also config.json file must be

...
      "clients": [
        {
          "id": "CLIENT1",
          "alterId": 10,
          "security": "auto"
        },        {
          "id": "CLIENT2",
          "alterId": 10,
          "security": "auto"
        },    {
          "id": "CLIENT3",
          "alterId": 10,
          "security": "auto"
        }
]
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions