Closed Bug 1994568 Opened 1 year ago Closed 1 month ago

try m2m auth (for code review, WPTSync, hackbot bots)

Categories

(Conduit :: Lando, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: shtrom, Assigned: shtrom)

References

Details

(Keywords: leave-open)

Attachments

(4 external files)

We need a different flow for bots to be able to push to try via lando.

This may require updates to mach try to auth to Auth0 in a different way to obtain the access_token.

Known bot/usecases:

No longer blocks: try-new-lando
Depends on: try-new-lando
See Also: → 2018857
Summary: try m2m auth (for review bot) → try m2m auth (for review and WPTSync bots)
Assignee: nobody → omehani
Status: NEW → ASSIGNED

As a stop-gap, let's start with using headless API tokens.

Attachment #9620226 - Attachment description: [mozilla-conduit/lando] headless_api: don't require User-Agent in auth (bug 1994568) - #1410 → [mozilla-conduit/lando] headless_api: make HeadlessAPIAuthentication chainable with other NinjaAPI authenticators (bug 1994568) - #1410
Summary: try m2m auth (for review and WPTSync bots) → try m2m auth (for code review, WPTSync, hackbot bots)
See Also: → 2021423
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED

https://github.com/mozilla-conduit/lando-cli/pull/20 needs to land first to handle a difference in error reponse format.

Keywords: leave-open
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 3 months ago → 3 months ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → ASSIGNED
See Also: → 2061731

Authored by https://github.com/shtrom
https://github.com/mozilla-conduit/lando/commit/4d011e1898d32cb04ac7c8d8ab3b0c755ff2a4af
[main] headless_api: make HeadlessAPIAuthentication chainable with other NinjaAPI authenticators (bug 1994568) r=sheehan

Authored by https://github.com/shtrom
https://github.com/mozilla-conduit/lando/commit/c7a2c47dac1480107393697997066929ea08b7bc
[main] try_api: enable HeadlessAPIAuthentication for M2M (bug 1994568) r=sheehan,zeid

ni: :Shasha for FYI: we should now be able to issue a token for the WPT bot to push to Try via lando. Feel free to file a bug for us to set that up when you're ready to try it out!

Flags: needinfo?(aborovova)
Blocks: 2066978
Flags: needinfo?(aborovova)

Anything left here?

Flags: needinfo?(omehani)

Ideally, we should use proper OAuth m2m. But in practice, I think this works well enough as-is. We can circle back if more is needed.

Status: ASSIGNED → RESOLVED
Closed: 3 months ago → 1 month ago
Flags: needinfo?(omehani)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: