10BC0 feat: support bootstrap_file on authentication for build-in-database by zhongwencool · Pull Request #13336 · emqx/emqx · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@zhongwencool
Copy link
Contributor
@zhongwencool zhongwencool commented Jun 26, 2024

Fixes https://emqx.atlassian.net/browse/EMQX-12593

close #8714, #9148
This feature needs to be used before enabling built_in_database authn,
so it makes sense to add configuration items to it.

Use the same template for initialization as for importing users:

Import data only on build-in-dabase create.

Support for JSON, CSV files.

authentication = [
  {
    backend = built_in_database
    mechanism = password_based
    password_hash_algorithm {name = sha256, salt_position = suffix}
    user_id_type = username
    
    # new items
    bootstrap_file = "/opt/init_user.json"
    bootstrap_type = hash | plain
  }
]

Release version: v/e5.7.2

Summary

PR Checklist

Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:

  • Added tests for the changes
  • Added property-based tests for code which performs user input validation
  • Changed lines covered in coverage report
  • Change log has been added to changes/(ce|ee)/(feat|perf|fix|breaking)-<PR-id>.en.md files
  • For internal contributor: there is a jira ticket to track this change
  • Created PR to emqx-docs if documentation update is required, or link to a follow-up jira ticket
  • Schema changes are backward compatible

Checklist for CI (.github/workflows) changes

  • If changed package build workflow, pass this action (manual trigger)
  • Change log has been added to changes/ dir for user-facing artifacts update

@zhongwencool zhongwencool marked this pull request as ready for review June 26, 2024 01:08
@zhongwencool zhongwencool requested a review from a team as a code owner June 26, 2024 01:08
@zhongwencool zhongwencool force-pushed the authn-boostrap-file branch 3 times, most recently from 4ad781c to b34b1a1 Compare June 26, 2024 03:41
@zhongwencool zhongwencool changed the title feat: support bootstrap_file on build-in-db authn feat: support bootstrap_file on authentication for build-in-database Jun 26, 2024
@zhongwencool zhongwencool force-pushed the authn-boostrap-file branch from f4b566d to 263f995 Compare June 27, 2024 03:35
@zhongwencool zhongwencool force-pushed the authn-boostrap-file branch from 263f995 to cbaa0b0 Compare June 27, 2024 07:22
@zmstone zmstone changed the base branch from release-572 to release-57 June 27, 2024 10:47
Co-authored-by: zmstone <zmstone@gmail.com>
@HJianBo HJianBo merged commit b39557f into emqx:release-57 Jun 28, 2024
@zhongwencool zhongwencool deleted the authn-boostrap-file branch June 28, 2024 02:22
@emqxqa
Copy link
emqxqa commented Jul 3, 2024

TestExecution

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.

4 participants

0