-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add userlog_global_notifications_secret #400
Conversation
@@ -26,7 +26,8 @@ spec: | |||
{{- include "ocis.containerSecurityContext" . | nindent 10 }} | |||
env: | |||
{{- include "ocis.serviceRegistry" . | nindent 12 }} | |||
|
|||
- name: USERLOG_GLOBAL_NOTIFICATIONS_SECRET | |||
value: {{ .Values.notificationsSecret | quote }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we get this from a Secret
please? See eg. here:
ocis-charts/charts/ocis/templates/authmachine/deployment.yaml
Lines 59 to 63 in 5c854bc
- name: AUTH_MACHINE_API_KEY | |
valueFrom: | |
secretKeyRef: | |
name: {{ include "secrets.machineAuthAPIKeySecret" . }} | |
key: machine-auth-api-key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notification as admin user
add notification
curl --insecure -X POST -u admin:<password> -v -d '{"type":"deprovision", "data":{"deprovision_date": "2023-07-04T17:12:03Z"}}' https://ocis.kube.owncloud.test/ocs/v2.php/apps/notifications/api/v1/notifications/global
-> works
remove notification
curl --insecure -X DELETE -u admin:<password> -v -d '{"ids":["deprovision"]}' https://ocis.kube.owncloud.test/ocs/v2.php/apps/notifications/api/v1/notifications/global
-> works
notification with secret
add notification
kubectl -n ocis exec deployment/userlog -- curl --insecure -X POST -H secret:<secret> -v -d '{"type":"deprovision", "data":{"deprovision_date": "2023-07-04T17:12:03Z"}}' http://localhost:8080/ocs/v2.php/apps/notifications/api/v1/notifications/global
-> this does not work for me
@case0sh could you please check if it works on your side and provide more information how you did it? I assumed that it needs to use the localhost:8080 from the userlog container, right? Did you really use the base64 encoded secret or the plaintext secret?
documentation
please also link the docs-ocis PR where you add information about the secret referenced in globalNotificationsSecretRef
Actually
|
* add userlog_global_notifications_secret (#400) * add userlog_global_notifications_secret * add secrets for userlog * add secrets for userlog * add secret options * fix notifications secrets * fix notifications secrets * fix notifications secrets * add docs * pin latest ocis version * allow to actually configure banned passwords * generate documentation --------- Co-authored-by: DanielY <[email protected]>
Description
expose USERLOG_GLOBAL_NOTIFICATIONS_SECRET option for userlog deployment
Related Issue
How Has This Been Tested?
Add name of you secret
globalNotificationsSecretRef: "foo"
test case 1: Test directly
Screenshots (if appropriate):
Types of changes
Checklist:
make docs
) and committed