GitHub user rdowner opened a pull request:

    https://github.com/apache/brooklyn-server/pull/906

    CreatePassworkSensor: support "character groups"

    Character groups are groups like "capital letters", "numbers", etc. This 
option allows a blueprint to require that the generated password contains at 
least one character from every group.
    
    It is common (e.g. Microsoft default password policy) to see a requirement 
like "must contain characters from at least 3 groups". Previously, this sensor 
could not guarantee that this would happen.
    
    Use it like this:
    
    ```yaml
          - type: org.apache.brooklyn.core.sensor.password.CreatePasswordSensor
            brooklyn.config:
              name: my.password
              password.length: 10
              password.character.groups:
               - "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
               - "abcdefghijklmnopqrstuvwxyz"
               - "1234567890"
               - "-_=+[{]};:|`~,<.>/?!@#$%^&*()"
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rdowner/brooklyn-server 
create-password-sensor-character-groups

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/906.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #906
    
----
commit 0bf1520ab5b5f8416d3c6e85ff43b4a6b3803490
Author: Richard Downer <rich...@apache.org>
Date:   2017-12-01T13:39:17Z

    CreatePassworkSensor: support "character groups"
    
    Character groups are groups like "capital letters", "numbers", etc. This
    option allows a blueprint to require that the generated password
    contains at least one character from every group.
    
    It is common (e.g. Micrsoft default password policy) to see a requirement
    like "must contain characters from at least 3 groups". Previously, this
    sensor could not guarantee that this would happen.
    
    Use it like this:
    
          - type: org.apache.brooklyn.core.sensor.password.CreatePasswordSensor
            brooklyn.config:
              name: my.password
              password.length: 10
              password.character.groups:
               - "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
               - "abcdefghijklmnopqrstuvwxyz"
               - "1234567890"
               - "-_=+[{]};:|`~,<.>/?!@#$%^&*()"

----


---

Reply via email to