This refers to what Paul has just said. His confidence comes from knowing that the new covenant has an eternal glory.
# the ending of a glory that was passing away
The refers to the glory that shined on Moses' face. AT: "the glory on Moses' face as it faded away completely" (See: [[rc://en/ta/man/translate/figs-explicit]])