Open
fix: validate check_user request credentials #1299
fix: validate check_user request credentials #1299
Open
super dog.Add on May 27
super dog.
May 27

PR Description

This PR validates required credential fields in check_user() before using them.

Fixes #21

Main Changes

  • read user and passwd safely from request JSON
  • return a structured error when either required field is missing
  • reuse validated values for password file writing and SSH validation

Validation

  • ran python -m py_compile func/check.py
  • observed only a pre-existing invalid escape SyntaxWarning
likedislike
Merge blocked
super dog.super dog.
May 27 Created pull request, commit 6744e19d
super dog.super dog.
May 27 Associated issue: fix: validate check_user request credentials before use
openeuler-ci-botopeneuler-ci-botCollaborators
May 27 Set genedna,weidongkl,yeqinglong01,xingwei-liu,stonefly128,blublue as approver
openeuler-ci-botopeneuler-ci-botCollaborators
May 27 Added label: sig/sig-Migration
openeuler-ci-bot
openeuler-ci-botCollaborators
May 27 Comments:

Welcome To openEuler Community

Hey @papertager , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: sig-Migration ,
and any of the maintainers: @blublue, @genedna, @stonefly128, @weidongkl, @xingwei-liu, @yeqinglong01 ,
and any of the committers: @blublue .

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
May 27 Added label: openeuler-cla/yes
openeuler-ci-bot
openeuler-ci-botCollaborators
May 27 Comments:

CLA Signature Pass

papertager, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike