CLDSRV-915: Fix service user provisioning broken by AWS SDK v3 migration#6185
Conversation
Hello tcarmet,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
|
LGTM |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## development/9.3 #6185 +/- ##
================================================
Coverage 84.53% 84.53%
================================================
Files 206 206
Lines 13360 13360
================================================
Hits 11294 11294
Misses 2066 2066
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Review by Claude Code |
a6e2d39 to
bfc23bb
Compare
|
LGTM |
bfc23bb to
0e66ffd
Compare
Request integration branchesWaiting for integration branch creation to be requested by the user. To request integration branches, please comment on this pull request with the following command: Alternatively, the |
A missing service user could no longer be created: the IAM lookup's not-found error was treated as fatal instead of triggering creation, so any environment provisioning a service user from scratch failed to install.
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "name": "@zenko/cloudserver", | |||
There was a problem hiding this comment.
This downgrades the package version from 9.3.8 to 9.3.7. The base branch development/9.3 is currently at 9.3.8, so this is a regression — likely from a stale branch that was not rebased before the PR was opened.
— Claude Code
| "@hapi/joi": "^17.1.1", | ||
| "@smithy/node-http-handler": "^3.0.0", | ||
| "arsenal": "git+https://github.com/scality/Arsenal#8.4.4", | ||
| "arsenal": "git+https://github.com/scality/Arsenal#8.4.1", |
There was a problem hiding this comment.
This downgrades arsenal from 8.4.4 to 8.4.1. The base branch development/9.3 is at 8.4.4, so this reverts three patch releases — likely from the same stale-branch issue as the version field. Rebase to pick up the current pin.
— Claude Code
|
0e66ffd to
1332692
Compare
|
LGTM |
Run the script against the CI vault to cover service user creation, idempotent re-run, and the conflicting-path failure. Wired as ft_scripts into the s3c-ft-tests job.
Otherwise LGTM — the |
25330ec to
38e38d4
Compare
|
LGTM |
|
/create_integration_branches |
ConflictA conflict has been raised during the creation of I have not created the integration branch. Here are the steps to resolve this conflict: git fetch
git checkout -B w/9.4/bugfix/CLDSRV-915-fix-ensure-service-user-not-found-check origin/development/9.4
git merge origin/bugfix/CLDSRV-915-fix-ensure-service-user-not-found-check
# <intense conflict resolution>
git commit
git push -u origin w/9.4/bugfix/CLDSRV-915-fix-ensure-service-user-not-found-checkThe following options are set: create_integration_branches |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
The following options are set: create_integration_branches |
|
/approve |
Build failedThe build for commit did not succeed in branch w/9.4/bugfix/CLDSRV-915-fix-ensure-service-user-not-found-check The following options are set: approve, create_integration_branches |
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
This pull request does not target the following hotfix branch(es) so they
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: approve, create_integration_branches |
Queue build failedThe corresponding build for the queue failed:
Remove the pull request from the queue
|
|
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue CLDSRV-915. Goodbye tcarmet. |
The AWS SDK v3 migration changed how IAM "entity not found" errors surface, and the service user provisioning script relied on the old shape. Since then a fresh environment can never create its service user: the lookup error is treated as fatal instead of triggering creation, and installs that provision one fail.
The script had no test coverage, which is how this slipped through. This PR also adds a functional test suite that exercises it end to end against a real IAM backend in CI, to catch mistakes in the script sooner.