Fix regression that caused unauthenticated publishing attempts