Closed mattkinnersley closed 3 weeks ago
Facing the same issue - seems to be the way the outputs are fetched from secrets i'm linking in to the authenticator function
it seems to be to do with linking secrets on my side
import { AccountsTable, WorkspacesTable } from "./api";
const Secrets = {
GoogleClientId: new sst.Secret("GoogleClientId"),
GoogleClientSecret: new sst.Secret("GoogleClientSecret")
}
export const auth = new sst.aws.Auth("Auth", {
authenticator: {
link: [AccountsTable, WorkspacesTable, Secrets.GoogleClientId, Secrets.GoogleClientSecret],
handler: "packages/auth/src/authenticator.handler",
nodejs: {
loader: {
".pem": "text",
},
},
environment: {
IS_LOCAL: $dev,
EMAIL_DOMAIN: domainConfig.baseDomain,
MARKETING_SITE_DOMAIN: MarketingSite,
FRONTEND_APP_DOMAIN: FrontendApp
},
url: true
},
});
export const authRouter = new sst.aws.Router("AuthRouter", {
routes: {
"/auth/*": auth.authenticator.url,
},
domain: {
name: AuthDomain
}
});
if I remove the linked secrets the error disappears. Also, it's irregular, sometimes it has the error, sometimes it doesnt. looks like it's something with the way that secrets are loaded and injected into the env
should be fixed in 0.0.398
On
sst dev
, updating the authenticator function config fails. This only happened after doing ansst upgrade
from version 0.0.361 ➜ 0.0.393Full error (redacted my private and public keys):