And I know also some who think that “being themselves“ means keep doing everything exactly like before.
I get what is being suggested by "be yourself", but I also think people can have a lot of layers that need to be peeled back before that's even evident, and if you propel yourself forward through action and change, one's vantage point of what "being yourself" is may have a qualitatively different aspect to it when certain kinds of limiting behaviors/ beliefs/ habits are excised from one's life, because they're also excised from their mental identification map. Those connections may not be relevant.
Many layers are always being peeled back, because it's an inherently hard problem. I mean, how should I act/live and what is the purpose?! It's not clear, but my idea is that psychological pain (or lack of) can be a compass as to whether our answers are on the right track. Being willing to change and shedding the limiting beliefs you identify with is part of realizing and discovering one's self.
That being said, whether one's beliefs and principles are justified will always remain an open question. I don't doubt that it's possible to have terrible beliefs and realize one's self as a smug asshole. I don't think (hope?) most of us would be comfortable with that.
You obviously didn't have any serious contact with the people who have psychological problems:
Some actually have psychological pain almost constantly, unless they do something that distracts them from that, but even bigger pain if they try to change anything. That's the "loop" in which they live and from which they believe there's no escape (it's also one of excuses for developing addictions). And the escape can be: surviving the bigger initial pain coming from their attempt to change. That's why they need help, at best from good professionals, like CBT is supposed to be. Their everyday environment (including the people closest to them) is often also a problem typically contributing to them being “trapped” in the loop.
It's really a very hard topic. Even the whole big groups of people (i.e. those that identify themselves with political parties) in the whole nations often live in some big denials (1), exactly staying in the "loop" where they even support them to "be themselves" in the sense of not having introspection and courage to change themselves to the better. Which would mean that they should reevaluate their "values" and not stick to them.
It's that hard. And I'm intentionally addressing your claim "you must attempt to live according to your principles and values." I don't agree. You must be ready to constantly question "your principles and values." They aren't absolute truths, you've just acquired them from your environment and these very values can be destructive both to you and often to other people that depend on your actions.
------
1) And I can name you some really big denials constantly kept in both of the two most influential U.S. parties, for example.
I'm not really proposing a solution, just an observation that these things, who you aspire to be/principles vs. how you live your life, seem to be coupled with psychological problems.
I think we are pretty much on the same page honestly.
I've been toying with the idea that you must attempt to live according to your principles and values, else there is inevitably be unresolved psychological tension. I don't want to get into examples to prove my assertion right now but brainstorming could be done.
Of course, this doesn't tell you what principles and values are right or wrong. Is OP right to want to be more confident? I don't know, but he believes he should and thus, stress. CBT could help. What I am fairly sure of, is that these problems won't resolve themselves until beliefs and actions start to align. So... "be yourself"