-
Notifications
You must be signed in to change notification settings - Fork 393
[New] External Secret Operator with Secret Manager #8653
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
Changes from 5 commits
b4038db
c41a3c4
0d3d6bc
36b3fd8
d11fd63
08fccab
400ac30
2a2ab17
c5d472c
ddad50b
ff6bb79
5d3a23d
635cac5
2fb08a7
86bad73
c4f11a4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,250 @@ | ||||||||||||
| --- | ||||||||||||
| title: "Use Kubernetes External Secret Operator with Secret Manager" | ||||||||||||
| excerpt: "Configure External Secret Operator to store Kubernetes secrets on the OVHcloud Secret Manager" | ||||||||||||
| updated: 2025-11-07 | ||||||||||||
| --- | ||||||||||||
|
|
||||||||||||
| > [!primary] | ||||||||||||
| > Secret Manager is currently in beta phase. This guide can be updated in the future with the advances of our teams in charge of this product. | ||||||||||||
|
|
||||||||||||
| ## Objective | ||||||||||||
|
|
||||||||||||
| This guide explains how set up the Kubernetes External Secret Operator to use the OVHcloud Secret Manager as a provider | ||||||||||||
gbarideau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||
|
|
||||||||||||
| ## Requirements | ||||||||||||
|
|
||||||||||||
| - An [OVHcloud customer account](/pages/account_and_service_management/account_information/ovhcloud-account-creation). | ||||||||||||
| - Have [ordered an OKMS domain](/pages/manage_and_operate/kms/quick-start) or [created a first secret](/pages/manage_and_operate/secret_manager/secret-manager-ui). | ||||||||||||
|
|
||||||||||||
gbarideau marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||
| ## Instructions | ||||||||||||
|
|
||||||||||||
| ### Setup the Secret Manager | ||||||||||||
|
|
||||||||||||
| To allow access to the Secret Manager you will need to create credentials. | ||||||||||||
|
|
||||||||||||
| Create an [IAM local user](/pages/account_and_service_management/account_information/ovhcloud-users-management) with acces right on your domain. | ||||||||||||
gbarideau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||
| This user need to have at least the following rights: | ||||||||||||
|
|
||||||||||||
| - `okms:apikms:secret/create` | ||||||||||||
| - `okms:apikms:secret/version/getData` | ||||||||||||
| - `okms:apiovh:secret/get` | ||||||||||||
| - `okms:apikms:secret/create` | ||||||||||||
gbarideau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||
|
|
||||||||||||
| Then create a Personnal Acces Token (PAT) `user_pat`: | ||||||||||||
|
|
||||||||||||
| > [!api] | ||||||||||||
| > | ||||||||||||
| > @api {v1} /me POST /me/identity/user/{user}/token | ||||||||||||
gbarideau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||
|
|
||||||||||||
| You will also need the `okms-id` of the OKMS domain you want to use. This ID can be found on the OVHcloud Control Panel. | ||||||||||||
|
||||||||||||
| You will also need the `okms-id` of the OKMS domain you want to use. This ID can be found on the OVHcloud Control Panel. | |
| You will also need the `region` and the `okms-id` of the OKMS domain you want to use. This ID and this region can be found on the OVHcloud Control Panel. | |
| Or through the `ovhcloud` CLI: | |
$ ovhcloud okms list
┌──────────────────────────────────────┬─────────────┐
│ id │ region │
├──────────────────────────────────────┼─────────────┤
│ xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx │ eu-west-par │
│ xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx │ eu-west-par │
└──────────────────────────────────────┴─────────────┘
Outdated
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.
J'avoue je ne comprend pas pourquoi il faut utiliser sealed-secret de bitnami et kubeseal pour utiliser le secret manager.
C'est plus quand on ne veut pas stocker les secrets dans Git et du coup on passe par des sealedsecret.
Outdated
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.
| First, install the controller in your cluster. It will automatically decrypt Sealed Secrets into standard Kubernetes Secrets | |
| First, install the controller in your cluster. It will automatically decrypt Sealed Secrets into standard Kubernetes Secrets |
gbarideau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
scraly marked this conversation as resolved.
Show resolved
Hide resolved
gbarideau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
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.
la value correspond a quoi ?
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.
ah c'est un exemple, je pense vraiment que l'exemple porte a confusion, il n'a pas de rapport avec le guide :)
gbarideau marked this conversation as resolved.
Show resolved
Hide resolved
gbarideau marked this conversation as resolved.
Show resolved
Hide resolved
gbarideau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
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.
par defaut le champ est a true donc pas obliger de mettre cette ligne installCRDS=true
gbarideau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
gbarideau marked this conversation as resolved.
Show resolved
Hide resolved
gbarideau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
gbarideau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
gbarideau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
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.
Create the SealedSecret in your cluster:
kubectl apply -f sealedsecret.yaml
Outdated
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.
| name: vault-secret-store | |
| name: vault-secret-store |
gbarideau marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
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.
comment connaitre le nom de sa region alors que dans le manager elle est ecrit comme cela "Europe (France ) Paris" ?
la region il faut l'ecrire en minuscule, majuscule ? Liste predefinie ?
On a un moyen d'obtenir son OKMS endpoint de maniere simple ? :)
Outdated
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.
| name: token-secret # The k8s secret that contain your PAT | |
| name: token-secret # The k8s secret that contain your PAT |
Outdated
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.
| key: token | |
| key: token |
Uh oh!
There was an error while loading. Please reload this page.