subutai-io / peer-os

Subutai is a next generation peer to peer (P2P) cloud computing and Internet of Things platform. Subutai peers collaborate and share resources to create secure virtual environments tying together the shared network and machine resources across peers.
https://subutai.io
Apache License 2.0
63 stars 34 forks source link

Prevent users to prefix snapshots names with reserved prefixes #2822

Closed dilshat closed 5 years ago

dilshat commented 5 years ago

We need to disallow using reserved prefixes in container snapshot names for individual snapshots (i-shots). The reserved prefixes are: env-

dilshat commented 5 years ago

How to test:

  1. Create a local environment
  2. In Environment -> Containers section, try to create a snapshot for an environment container, using env- as a prefix i.e. a snapshot name must start with env- ,e.g. env-all

Result: Snapshot creation must fail with an appropriate message

kurmanbekova6 commented 5 years ago

Screenshot from 2019-03-13 15-05-10 Tested in master