ua: add support to ua token management
Metadata
Current evaluation
Merged. Adds Ubuntu Advantage token management to snapcraft, enabling build environment attachment via --ua-token or SNAPCRAFT_UA_TOKEN. Approved by one reviewer, passed CI, and merged with 406 additions and 7 deletions.
Suggested action: —
No scores available.
Issue body
Attach and detach the build host, vm or container to an Ubuntu
Advantage subscription by passing a UA authentication token using
the `--ua-token` command-line argument or the `SNAPCRAFT_UA_TOKEN`
environment variable.
Co-authored-by: Chris Patterson <chris.patterson@canonical.com>
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `make lint`?
- [ ] Have you successfully run `pytest tests/unit`?
-----
CRAFT-1288
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Adds Ubuntu Advantage token management to snapcraft, enabling build environment attachment via --ua-token or SNAPCRAFT_UA_TOKEN. Approved by one reviewer, passed CI, and merged with 406 additions and 7 deletions. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Implements Ubuntu Advantage token management to attach or detach build environments via the --ua-token flag or SNAPCRAFT_UA_TOKEN env var. Reviewers verified it works with staging tokens following minor manual config adjustments. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged PR adding --ua-token CLI argument and SNAPCRAFT_UA_TOKEN environment variable to manage Ubuntu Advantage subscriptions. Ports the legacy UA manager, deferring service enabling to a subsequent PR. Successfully tested with staging tokens. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3890 ua: enable ua services in legacy | snapcraft | merged | Merged baseline implementation backporting UA services support from core22 to legacy snapcraft. Introduces ua-services project key and --enable-experimental-ua-services flag. Approved by maintainer, passed CI, and integrated into main. |