Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
marpi82
3 days agoNew Contributor
Cannot connect connect-server to 1password from k8s
Hello.
I have a problem with running 1Password operator in k8s cluster.
Onepassword-connector does not connect to the server at all. First I had problems with onepassword-credentials.json being fetched by the connector-api and connector-sync containers if they were declared as:
env:
- name: OP_SESSION
valueFrom:
secretKeyRef:
name: op-credentials
key: 1password-credentials.json
So I passed them via volumes / volumeMounts and defined the variable like this:
volumes:
- name: credentials
secret:
secretName: op-credentials
(...)
env:
- name: OP_SESSION
value: /home/opuser/.config/1password-credentials.json
volumeMounts:
- mountPath: /home/opuser/.config
name: credentials
readOnly: true
Here I put my code to make it clear how I create the deployment: Gitlab
Unfortunately I still can't connect to the server, and on the page:
https://my.1password.com/developer-tools/infrastructure-secrets/connect/{connect_id}
There is no information about the connection of my connect server, it only says "Not yet deployed" Neither the connect-api container nor the connect-sync inside the onepassword-connect pod log any errors.
Only errors I have are for operator and OnePasswordItem, which is:
2025-02-17T20:31:08Z ERROR Reconciler error {"controller": "onepassworditem", "controllerGroup": "onepassword.com", "controllerKind": "OnePasswordItem", "OnePasswordItem": {"name":"example","namespace":"onepassword"}, "namespace": "onepassword", "name": "example", "reconcileID": "a1ba0a9c-7388-454e-9ce6-074cb6621e5c", "error": "Failed to retrieve item: Get \"http://onepassword-connect:8080/v1/vaults?filter=title+eq+%22Development%22\": net/http: invalid header field value for \"Authorization\""}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:329
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227
Could I ask for help in finding the problem?
MarPi82
No RepliesBe the first to reply