What am I?

I am as hard as metal, yet as flimsy as glass. I shine like a star, yet I am only a rock. What am I?