Marton Soos
285496dc7e
Error when secret type is changed
2022-02-18 10:27:48 +01:00
Marton Soos
f38cf7e1c2
Fix tests and add new test
2022-02-17 21:23:22 +01:00
Marton Soos
bb7a0c8ca9
Simplify secret type cast and default to Opaque
2022-02-17 19:36:49 +01:00
Marton Soos
302653832e
Account for the fact that the '' type and Opaque are equivalent on secret comparison
2022-02-17 19:18:33 +01:00
Marton Soos
a1bcfdfdcb
Merge branch 'main' into feature/kubernetes-secret-types
2022-02-17 17:54:17 +01:00
Andres Montalban
5d229c42d5
feat: Allow configuration of the Kubernetes Secret type to be created
2021-11-18 08:32:55 -03:00
Samuel Archambault
5fab662424
More logging if 1password item cant be read and continue processing others
2021-09-24 11:03:47 -04:00
Floris van der Grinten
7aeb36e383
Merge pull request #66 from 1Password/fix/handling-key-names
...
Handling key names
2021-09-13 13:34:44 +02:00
Eddy Filip
670040477e
Add max length for secret key names
...
Max length for secret key names must be DNS1123 compliant (253)
2021-09-08 16:02:08 +03:00
Eddy Filip
a45a310611
Make secret names DNS1123 Subdomain compiant
...
This is done while ensuring that secret keys are compliant (contain alphanumeric characters, `-`, `_` and `.`)
2021-09-08 15:36:40 +03:00
Eddy Filip
d80e8dd799
Add tests with names that contain .
and _
2021-09-08 13:58:48 +03:00
Eddy Filip
88728909ff
Adjust regex to support _
and .
and trim them
...
Now secret names can also contain `_` and `.` and they will be trimmed from start and end of string to be DNS1123 compliant
2021-09-08 13:49:32 +03:00
Marton Soos
e365ebfdfa
Fix tests
2021-09-03 15:42:02 +03:00
Marton Soos
2c4b4df01a
Do not make secret names lowercase on normalization
2021-09-03 15:41:46 +03:00
mcmarkj
0193a98681
Merge branch 'main' of github.com:1Password/onepassword-operator into pass-labels-and-annotations
2021-08-19 16:15:02 +01:00
mcmarkj
f241d7423d
Use deepequal
2021-08-19 16:11:29 +01:00
Eddy Filip
8cfe98073e
Improve testing
...
Fix previous tests and add test for items with field names that are not valid DNS subdomain names.
2021-08-16 14:51:44 +02:00
david.gunter
96b42e7c52
Label normalizer now fixes both Secret names and data keys.
...
Each key in the `data` section of a secret must also be a valid DNS subdomain. The operator needs to "fix" the 1Password item fields before trying to create the secret.
2021-08-06 13:18:21 -07:00
david.gunter
579b5848da
Add secret name normalizer to the operator.
...
The operator will now reformat 1Password item names to become valid names K8s Secret objects. Secret names must be a valid DNS subdomain name. See more: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names
2021-08-05 16:39:55 -07:00
mcmarkj
dff934cbc3
Fix tests
2021-08-04 06:33:56 +01:00
mcmarkj
2096f4440f
add logic for checking for label or annotation updates
2021-08-03 21:32:04 +01:00
mcmarkj
b3fc707337
Merge branch 'main' of github.com:1Password/onepassword-operator into pass-labels-and-annotations
2021-07-23 15:29:24 +01:00
Eddy Filip
9441214733
Add support custom namespace for connect deployment
...
Now when the operator is deployed with the `MANAGE_CONNECT` env var set to true, the connect instance is deployed in the same namespace as the operator.
2021-06-09 20:45:33 +03:00
mcmarkj
fb1262f1bd
PR Feedback'
2021-06-07 21:51:44 +01:00
mcmarkj
a428fe7462
GoFMT
2021-05-28 18:15:17 +01:00
mcmarkj
ea2d1f8a09
Typo
2021-05-28 18:11:10 +01:00
mcmarkj
bd96d50a9b
Add Labels & Annotations from OPObject to Secret
2021-05-28 16:39:00 +01:00
jillianwilson
62ca0c25fd
Making casing of annotations consistent
2021-04-09 10:41:41 -03:00
jillianwilson
d98f9172a0
Auto restart one password custom resource will be be added to converted kubernetes secret
2021-03-03 14:29:27 -04:00
jillianwilson
8635be0cab
Handle restart annotation on kubernetes secret
2021-03-01 15:58:32 -04:00
jillianwilson
0824aa0837
Refactoring map of updated secrets to include secret
2021-02-26 10:45:30 -04:00
jillianwilson
e2fc9e228e
Adding configuration for auto rolling restart on deployments
...
- Locked secrets will not trigger rolling restarts of deployments
- Configure restart of deployments via operator environment variables, namespace annotations, or deployment annotations
- Updating permissions examples to include the ability to list namespaces
- Updated readme to reflect additional cofiguration options
2021-01-20 17:16:57 -04:00
jillianwilson
eebb90e43b
Option to automatically deploy 1Password Connect via the operator
2021-01-14 16:18:09 -04:00
jillianwilson
76ee62519e
Ignore restart annotation when looking for 1Password annotations
2021-01-13 15:32:03 -04:00
jillianwilson
dae6e51112
Allow vault and item titles in item path
...
Items can now be accessed by either vaults/<vault_id>/items/<item_id> or vaults/<vault_title>/items/<item_title>
2020-12-18 12:02:56 -04:00
jillianwilson
824f54b4fa
Initial 1Password Operator commit
2020-12-10 18:28:38 -04:00