-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement product registration support (#1809)
## Solution This pull request implements support for product registration. It includes changes at several levels: - Adapt the Ruby part to handle the registration using `/run/agama/zypp` as target directory. - Add the information about whether a product should be registered or not in the product (and not through a separate D-Bus attribute). Propagate those changes to the HTTP API too. - Implement a registration page to the web user-interface. ## Testing You can use the web UI which sends the proper request to the backend or, if you prefer, you can play around with cURL: ``` TOKEN=$(curl -k --silent $AGAMA_URL/api/auth -d '{"password": "linux"}' \ -H "Content-Type: application/json" | jq .token | tr -d '"') echo "Content-Type: application/json" >headers.txt echo -n "Authorization: Bearer " >>headers.txt echo $TOKEN >>headers.txt curl -k -H @headers.txt -X PUT \ $AGAMA_URL/api/software/config \ -d "{\"product\": \"SLES\"}" curl -k -H @headers.txt -X POST \ $AGAMA_URL/api/software/registration \ -d "{\"key\": \"YOUR-REGISTRATION-CODE\", \"email\": \"[email protected]\"}" ``` Set `$AGAMA_URL` to the Agama HTTP API (e.g., `https://192.168.122.10`). ## Screenshots ![reg2](https://github.com/user-attachments/assets/c311a69a-38af-49fd-a0eb-4734bba3bb91) ![reg1](https://github.com/user-attachments/assets/41ee1f07-70b8-4a9d-bdb8-ce78b5119bc6)
- Loading branch information
Showing
59 changed files
with
1,156 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
------------------------------------------------------------------- | ||
Wed Jan 8 14:07:21 UTC 2025 - Imobach Gonzalez Sosa <[email protected]> | ||
|
||
- Add support for products registration (jsc#PED-11192, | ||
gh#agama-project/agama#1809). | ||
|
||
------------------------------------------------------------------- | ||
Tue Jan 7 12:57:13 UTC 2025 - Lubos Kocman <[email protected]> | ||
|
||
- Drop yast from Leap 16.0 software selection | ||
code-o-o#leap/features#173 | ||
|
||
|
||
------------------------------------------------------------------- | ||
Mon Jan 6 14:41:28 UTC 2025 - Angela Briel <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
------------------------------------------------------------------- | ||
Wed Jan 8 14:05:34 UTC 2025 - Imobach Gonzalez Sosa <[email protected]> | ||
|
||
- Add support for products registration (jsc#PED-11192, | ||
gh#agama-project/agama#1809). | ||
|
||
------------------------------------------------------------------- | ||
Fri Dec 20 12:17:26 UTC 2024 - Josef Reidinger <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.