Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STORY-648] feat: simplify passwords generation #17

Merged

Conversation

sc-david-voisin
Copy link
Contributor

@sc-david-voisin sc-david-voisin commented Aug 26, 2024

  • default password length is raised from 20 to 64 characters long
  • generated passwords contain only alphanumeric and underscore
    characters
  • not related to the issue, upgrade to go 1.22

STORY-648

* default password length is raised from 20 to 24 characters long
* generated passwords contain only alphanumeric and underscore
  characters
* not related to the issue, upgrade to go 1.23
@sc-david-voisin sc-david-voisin self-assigned this Aug 26, 2024
@sc-david-voisin sc-david-voisin marked this pull request as draft August 26, 2024 16:07
CHANGELOG.md Outdated
@@ -1,6 +1,10 @@
# Changelog

## To be Released
## 1.0.4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version bump is not supposed to happen in this PR. It will be part of the release of a new version (https://github.com/Scalingo/gopassword?tab=readme-ov-file#release-a-new-version).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oups, revert is coming...

go.mod Outdated
@@ -1,6 +1,6 @@
module github.com/Scalingo/gopassword

go 1.20
go 1.23
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: Go 1.23 is not installed on the servers. Only Go 1.22 (https://github.com/Scalingo/appsdeck-kitchen/blob/7b6e1f5f12eba1d3f24f6da13214cf1dc5874254/environments/production.rb#L15-L18). Hence I would only update this parameter to 1.22

@sc-david-voisin sc-david-voisin marked this pull request as ready for review August 27, 2024 07:48
Copy link
Member

@EtienneM EtienneM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: the title of the PR does not match our current practice. The PR title should follow the Karma convention (https://karma-runner.github.io/6.4/dev/git-commit-msg.html). Hence I would have expected something like: feat: simplify password generation.

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated
@@ -2,6 +2,10 @@

## To be Released

* chore(go): use go 1.23
* Raise default length from 20 to 24
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: is this new default length (24) the minimum required by our PSSI?

edit: after reading the related story, I think the default length should be the maximum length. Hence it should be 64. What do you think?

Copy link
Contributor Author

@sc-david-voisin sc-david-voisin Aug 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The minimum (24) is enough but the maximum (64) is better.
Go for 64 !!

@sc-david-voisin sc-david-voisin changed the title Simplify passwords generation feat: simplify passwords generation Aug 27, 2024
sc-david-voisin and others added 2 commits August 27, 2024 09:59
Co-authored-by: Étienne M. <EtienneM@users.noreply.github.com>
Copy link
Member

@EtienneM EtienneM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🎉

@sc-david-voisin sc-david-voisin changed the title feat: simplify passwords generation [STORY-648] feat: simplify passwords generation Aug 28, 2024
Copy link

@sc-david-voisin sc-david-voisin merged commit f5b4d7f into master Aug 28, 2024
2 checks passed
@sc-david-voisin sc-david-voisin deleted the feat/database-dashboard/659/strengthen_passwords branch August 28, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants