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

Set status to Blocked when secret-key is shorter than 8 characters long #178

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

lucabello
Copy link
Contributor

@lucabello lucabello commented Jul 29, 2024

Closes #137.

This PR adds an additional check in the charm.py file to ensure that the secret-key is at least 8 characters long. If it isn't, the charm's status changes to blocked with an appropriate message.

The minimum size of 8 characters seems to be hard-coded in this line.

@mvlassis
Copy link
Contributor

mvlassis commented Aug 9, 2024

@lucabello I created #183 that introduces the changes you made (to trigger the CI because it only triggers for team members of the repo).

Great work!

@mvlassis
Copy link
Contributor

@lucabello Since all the CI passes, it's ready to go! Some small suggestions before we merge:

Thanks again!

@lucabello
Copy link
Contributor Author

Seems like you have your other PR up so not sure if you still need this one, but updating the things you asked nonetheless :)

@lucabello lucabello changed the title block when secret-key is too short Set status to Blocked when secret-key is shorter than 8 characters long Aug 12, 2024
@mvlassis mvlassis enabled auto-merge (squash) August 13, 2024 10:17
@mvlassis mvlassis merged commit a85ad55 into canonical:main Aug 13, 2024
1 of 7 checks passed
@mvlassis
Copy link
Contributor

@lucabello I created the PR just to trigger the CI, so I just merged yours and closed #183 as a duplicate.

Thanks for contributing :)

orfeas-k pushed a commit that referenced this pull request Nov 19, 2024
orfeas-k added a commit that referenced this pull request Nov 20, 2024
…ngth

backport(fix): block when secret-key is too short from #178
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.

Missing secret-key config value validation
2 participants