You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/openfaas-pro/builder.md
+117Lines changed: 117 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,123 @@ faas-cli up --remote-builder http://127.0.0.1:8081/build \
109
109
--payload-secret $HOME/.openfaas/payload.txt
110
110
```
111
111
112
+
### Build secrets
113
+
114
+
Build secrets let you pass private registry tokens, CA certificates, or other sensitive values into a `RUN --mount=type=secret` instruction during a remote build. Secrets are sealed (encrypted) client-side so they are protected in transit, even without TLS.
115
+
116
+
#### Setup
117
+
118
+
Generate a keypair and create a Kubernetes secret with the private key:
119
+
120
+
```bash
121
+
faas-cli secret keygen
122
+
123
+
kubectl create secret generic -n openfaas \
124
+
pro-builder-build-secrets-key \
125
+
--from-file key=./key
126
+
```
127
+
128
+
Then set `buildSecrets.privateKeySecret` and `buildSecrets.keyID` in the [helm chart values](https://github.com/openfaas/faas-netes/tree/master/chart/pro-builder) and upgrade the release.
129
+
130
+
Distribute the `key.pub` file to anyone who needs to build with secrets.
As an alternative to a private or authenticated registry, you can use [ttl.sh by Replicated](https://ttl.sh) as a temporary registry for testing (only). It allows you to publish containers that are removed after a certain time-limit, try `ttl.sh/test-image-hello:1h` for an image that is removed after 1 hour.
0 commit comments