Change password generation rules

Created on 27 December 2023, 6 months ago
Updated 5 February 2024, 5 months ago

Problem/Motivation

Generate the password to be set when creating a project according to the following rules.

  • One or more capital letters
  • One or more lowercase letters
  • One or more numbers
  • One or more symbols
  • Must be at least 12 characters
πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡―πŸ‡΅Japan kentaro.hayashi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @kentaro.hayashi
  • Status changed to Needs review 6 months ago
  • πŸ‡―πŸ‡΅Japan kentaro.hayashi

    @yas

    I changed openstack password generation policy.
    Could you review it? Thanks.

  • Status changed to Needs work 6 months ago
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    @kentaro.hayashi

    Can you please create the MR? Thanks!

  • Pipeline finished with Failed
    6 months ago
    Total: 288s
    #78431
  • Pipeline finished with Failed
    6 months ago
    Total: 281s
    #78439
  • Status changed to Needs review 6 months ago
  • πŸ‡―πŸ‡΅Japan kentaro.hayashi

    @yas

    I fixed the following.

    • Add a newline to the end of the file
    • Changed the variable name of the string that is allowed to be used to "allowedCharacters"

    Could you review it? Thanks.

  • Status changed to Needs work 6 months ago
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    @kentaro.hayashi

    Can you please check the phpcs errors?
    β†’ https://git.drupalcode.org/issue/facade-3410961/-/jobs/645535

    Thanks

  • Pipeline finished with Failed
    6 months ago
    Total: 258s
    #79010
  • Pipeline finished with Failed
    6 months ago
    Total: 182s
    #79012
  • Pipeline finished with Failed
    6 months ago
    Total: 266s
    #79018
  • Pipeline finished with Failed
    6 months ago
    Total: 178s
    #79021
  • πŸ‡―πŸ‡΅Japan kentaro.hayashi

    @naoi

    The following warn occurs in phpcs.

    --------------------------------------------------------------------------------
    FILE                                                            ERRORS  WARNINGS
    --------------------------------------------------------------------------------
    ...openstack_provider/src/Service/OpenStackProviderService.php  0       1
    --------------------------------------------------------------------------------
    A TOTAL OF 0 ERRORS AND 1 WARNING WERE FOUND IN 45 FILES
    --------------------------------------------------------------------------------
    PHPCBF CAN FIX 1 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------
    PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
    ----------------------------------------------------------------------
        SOURCE                                                       COUNT
    ----------------------------------------------------------------------
    [x] Drupal.Classes.UnusedUseStatement.UnusedUse                  1
    ----------------------------------------------------------------------
    A TOTAL OF 1 SNIFF VIOLATION WERE FOUND IN 1 SOURCE
    ----------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SOURCES AUTOMATICALLY (1 VIOLATIONS IN TOTAL)
    ----------------------------------------------------------------------
    

    Line 25 of openstack_provider/src/Service/OpenStackProviderService.php is as follows:
    https://git.drupalcode.org/issue/facade-3410961/-/blob/f963ee613f9489343...

    However, I am actually using "OpenStackPasswordGenerator".
    How should I fix it? Thanks.

  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    @kentaro.hayashi

    Since both OpenStackPasswordGenerator and OpenStackProviderService are in the same directory, so can we simply remove the following line?

    diff --git a/modules/tenants/openstack_provider/src/Service/OpenStackProviderService.php b/modules/tenants/openstack_provider/src/Service/OpenStackProviderService.php
    index 608c27d..abb8778 100644
    --- a/modules/tenants/openstack_provider/src/Service/OpenStackProviderService.php
    +++ b/modules/tenants/openstack_provider/src/Service/OpenStackProviderService.php
    @@ -22,7 +22,6 @@ use Drupal\facade\Entity\TenantInterface;
     use Drupal\openstack\Service\OpenStackServiceFactoryInterface;
     use Drupal\openstack_provider\Entity\OpenStackTenantProject;
     use Drupal\openstack_provider\Entity\OpenStackTenantProjectInterface;
    -use Drupal\openstack_provider\Service\OpenStackPasswordGenerator;
     use GuzzleHttp\ClientInterface;
     use GuzzleHttp\Exception\GuzzleException;
     use Symfony\Component\DependencyInjection\ContainerInterface;
  • Pipeline finished with Success
    5 months ago
    Total: 258s
    #80535
  • Status changed to Needs review 5 months ago
  • πŸ‡―πŸ‡΅Japan kentaro.hayashi

    @naoi

    Thank you for your comment.
    When I removed the use statement for OpenStackPasswordGenerator from OpenStackProviderService, I confirmed that the pipeline was working.
    I also confirmed that the code works properly.
    Could you review it? Thanks.

  • Status changed to RTBC 5 months ago
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    @kentaro.hayashi

    Thank you for the update. I'll merge the patch to 1.0.x, and close this issue as Fixed.

  • Pipeline finished with Skipped
    5 months ago
    #80577
  • Status changed to Fixed 5 months ago
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ
  • Status changed to Fixed 5 months ago
  • Status changed to Fixed 5 months ago
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    @hayashi.kentaro

    Please keep the status Fixed until the status will be automatically changed to Closed (fixed) after two weeks from the Fixed date. See also: https://www.drupal.org/docs/develop/issues/fields-and-other-parts-of-an-... β†’

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024