```shell
tameyer@tam-canoncial-1:~$ cd scratch/
tameyer@tam-canoncial-1:~/scratch$ mkdir dummycharm
tameyer@tam-canoncial-1:~/scratch$ cd dummycharm/
tameyer@tam-canoncial-1:~/scratch/dummycharm$ charmcraft init --profile=kubernetes
Charmed operator package file and directory tree initialised.
Now edit the following package files to provide fundamental charm metadata
and other information:
charmcraft.yaml
src/charm.py
README.md
tameyer@tam-canoncial-1:~/scratch/dummycharm$ charmcraft pack
Packed dummycharm_ubuntu-22.04-amd64.charm
tameyer@tam-canoncial-1:~/scratch/dummycharm$ juju deploy ./dummycharm_ubuntu-22.04-amd64.charm --resource some-container-image=ghcr.io/canonical/api_demo_server:1.0.1
Located local charm "dummycharm", revision 0
Deploying "dummycharm" from local charm "dummycharm", revision 0 on ubuntu@22.04/stable
tameyer@tam-canoncial-1:~/scratch/dummycharm$ juju add-secret examplesecret one=one
secret:cpfq9b7mp25c77uu93lg
tameyer@tam-canoncial-1:~/scratch/dummycharm$ juju secrets
ID Name Owner Rotation Revision Last updated
cok9ngnmp25c77t3s890 example <model> never 1 2024-04-24
cpfq9b7mp25c77uu93lg examplesecret <model> never 1 2 seconds ago
tameyer@tam-canoncial-1:~/scratch/dummycharm$ juju exec -u dummycharm/0 secret-get secret:cpfq9b7mp25c77uu93lg
ERROR permission denied
ERROR the following task failed:
- id "174" with return code 1
Steps to reproduce, Juju 3.4.1, microk8s:
```shell tam-canoncial- 1:~$ cd scratch/ tam-canoncial- 1:~/scratch$ mkdir dummycharm tam-canoncial- 1:~/scratch$ cd dummycharm/ tam-canoncial- 1:~/scratch/ dummycharm$ charmcraft init --profile= kubernetes
tameyer@
tameyer@
tameyer@
tameyer@
Charmed operator package file and directory tree initialised.
Now edit the following package files to provide fundamental charm metadata
and other information:
charmcraft.yaml
src/charm.py
README.md
tameyer@ tam-canoncial- 1:~/scratch/ dummycharm$ charmcraft pack ubuntu- 22.04-amd64. charm tam-canoncial- 1:~/scratch/ dummycharm$ juju deploy ./dummycharm_ ubuntu- 22.04-amd64. charm --resource some-container- image=ghcr. io/canonical/ api_demo_ server: 1.0.1 tam-canoncial- 1:~/scratch/ dummycharm$ juju add-secret examplesecret one=one cpfq9b7mp25c77u u93lg tam-canoncial- 1:~/scratch/ dummycharm$ juju secrets 3s890 example <model> never 1 2024-04-24 u93lg examplesecret <model> never 1 2 seconds ago tam-canoncial- 1:~/scratch/ dummycharm$ juju exec -u dummycharm/0 secret-get secret: cpfq9b7mp25c77u u93lg
Packed dummycharm_
tameyer@
Located local charm "dummycharm", revision 0
Deploying "dummycharm" from local charm "dummycharm", revision 0 on ubuntu@22.04/stable
tameyer@
secret:
tameyer@
ID Name Owner Rotation Revision Last updated
cok9ngnmp25c77t
cpfq9b7mp25c77u
tameyer@
ERROR permission denied
ERROR the following task failed:
- id "174" with return code 1
use 'juju show-task' to inspect the failure
tameyer@ tam-canoncial- 1:~/scratch/ dummycharm$ juju grant-secret examplesecret dummycharm tam-canoncial- 1:~/scratch/ dummycharm$ juju exec -u dummycharm/0 secret-get secret: cpfq9b7mp25c77u u93lg
tameyer@
one: one
```