sigstore-conformance / extremely-dangerous-public-oidc-beacon

Apache License 2.0
1 stars 3 forks source link

Test the github Pages published token timeliness #8

Closed jku closed 8 months ago

jku commented 1 year ago

There's a token being published in https://sigstore-conformance.github.io/extremely-dangerous-public-oidc-beacon/oidc-token.txt now. Before we use it in sigstore-conformance, let's test it a bit (as @tnytown mentioned in PR comment Pages might have its own issues with publishing timeliness).

I tested this for a while in my own fork before th PR and it seemed to update pretty well, but the token in this projects Pages right now seems funky: I will investigate.

More specific notes:

A couple of options:

jku commented 1 year ago

maybe the limit only comes up after a longer time

I think this may be true. I've enabled workflows on my fork again and am testing both this project and my fork:

I'll take another look tomorrow when my fork should also have hit whatever limits there may be

jku commented 1 year ago

There's definitely something weird going on.For about two days of testing (running a script that checks the token every 10 seconds) my fork had fresh tokens available on GitHub Pages almost 100% consistently: the oldest token was 6 minutes old. Now on the third day it started having the same symptoms this project has: several multihour outages where suddenly Pages is not updated for 4-7 hours.

I'll investigate this more later but the Pages published token is definitely not usable for sigstore-conformance at the moment. I suspect Pages has some undocumented publishing limit that prevents the sort of use I was planning.

jku commented 8 months ago

This is a dead end: Pages publishing is not reliable for this. I will file a new issue for the git commit approach