• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agama-project / agama / 15579666570 / 1 – rust
74%
master: 74%

Build:
DEFAULT BRANCH: master
Ran 11 Jun 2025 08:18AM UTC
Files 119
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Jun 2025 08:15AM UTC coverage: 1.305% (-0.005%) from 1.31%
rust – 15579666570.1

push

github

web-flow
feat(rust): improve user/root exported information (#2461)

## Problem

There are a few problems with the user and root settings that "agama
config show" generates.

1. It is not possible to get the root password (it is not exposed). See
[bsc#1235602](https://bugzilla.suse.com/show_bug.cgi?id=1235602).
2. The `user` section is exported even if a first user does not exist.
3. The `root` section is exported even if no authentication mechanism
has been defined.
4. The `hashed_password` key is exported even if the `root` only has an
SSH public key.

For instance, here's the output for a just started Agama instance:

```json
{
  "root": {},
  "user": {
    "fullName": "",
    "userName": "",
    "password": "",
    "hashedPassword": false
  }
}
```

## Solution

* Move the password settings to a single struct (`UserPassword`). The
`password` and the `hashedPassword` keys are always exported together.
* Do not export the `user` or `root` sections unless it is needed.

I decided to not make the changes at HTTP level because it would imply
adapting the web client too and we have more urgent things to work on.

## Testing

- *Updated the unit test*
- *Tested manually*

71 of 5439 relevant lines covered (1.31%)

0.02 hits per line

Source Files on job rust - 15579666570.1
  • Tree
  • List 119
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 15579666570
  • d02c3bbf on github
  • Prev Job for on master (#15577201308.1)
  • Next Job for on master (#15580274209.)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc