Skip to content
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

initial not tested #2

Merged
merged 17 commits into from
Aug 4, 2024
Merged

initial not tested #2

merged 17 commits into from
Aug 4, 2024

Conversation

mixx3
Copy link
Member

@mixx3 mixx3 commented Jan 12, 2024

Изменения

Детали реализации

Check-List

  • Вы проверили свой код перед отправкой запроса?
  • Вы написали тесты к реализованным функциям?
  • Вы не забыли применить форматирование black и isort для Back-End или Prettier для Front-End?

module.go Outdated Show resolved Hide resolved
@mixx3 mixx3 requested a review from dyakovri February 17, 2024 11:15
@dyakovri
Copy link
Member

Пробовал сбилдить

FROM caddy:2.8.4-builder-alpine AS builder

RUN xcaddy build \
    --with github.com/profcomff/caddy-dns-yandex-cloud@copy_from_hetzner

FROM caddy:2.8.4

COPY --from=builder /usr/bin/caddy /usr/bin/caddy

получил ошибку

126.5 /go/pkg/mod/github.com/profcomff/[email protected]/module.go:49:23: p.Provider.GetServiceConfig undefined (type *libdns_yandex_cloud.Provider has no field or method GetServiceConfig)

@dyakovri
Copy link
Member

dyakovri commented Aug 4, 2024

Сейчас ошибка такая

panic: certificate worker: invalid key: Key must be a PEM encoded PKCS1 or PKCS8 key
goroutine 67 [running]:
github.com/caddyserver/certmagic.(*jobManager).worker.func1()
	github.com/caddyserver/[email protected]/async.go:58 +0x65
panic({0x16de060?, 0x2a99320?})
	runtime/panic.go:770 +0x132
github.com/profcomff/libdns-yandex-cloud.loadPrivateKey(...)
	github.com/profcomff/[email protected]/client.go:302
github.com/profcomff/libdns-yandex-cloud.signedToken({{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}})
	github.com/profcomff/[email protected]/client.go:272 +0x625
github.com/profcomff/libdns-yandex-cloud.getIAMToken({{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}})
	github.com/profcomff/[email protected]/client.go:309 +0xbd
github.com/profcomff/libdns-yandex-cloud.(*Provider).UpdateApiToken(...)
	github.com/profcomff/[email protected]/provider.go:23
github.com/profcomff/libdns-yandex-cloud.(*Provider).AppendRecords(0xc0002c7320, {0x1e836a8, 0xc0000c11d0}, {0xc000976d38?, 0x412185?}, {0xc0009e40c0, 0x1, 0x1})
	github.com/profcomff/[email protected]/provider.go:44 +0xc8

@dyakovri dyakovri force-pushed the copy_from_hetzner branch from 7676306 to 0ba8cc2 Compare August 4, 2024 18:30
@dyakovri dyakovri merged commit 352f38e into main Aug 4, 2024
0 of 2 checks passed
@dyakovri dyakovri deleted the copy_from_hetzner branch August 4, 2024 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants