Terraform-provider-nexus: http_client 인증 μ„Ήμ…˜μ— μ‚¬μš©ν•  수 μžˆλŠ” 'λΉ„λ°€λ²ˆν˜Έ' ν•„λ“œκ°€ μ—†μŠ΅λ‹ˆλ‹€.

에 λ§Œλ“  2020λ…„ 06μ›” 09일  Β·  13μ½”λ©˜νŠΈ  Β·  좜처: datadrivers/terraform-provider-nexus

μƒμ„±ν•˜λ €κ³  ν•˜λ©΄ λ‹€μŒκ³Ό 같은 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€.

 Error: could not update repository 'maven-release': HTTP: 400, [ {
  "id" : "FIELD password",
  "message" : "may not be empty"
} ]

이에 λŒ€ν•œ TF μ½”λ“œ 블둝은 λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€.

  http_client {
      blocked = false
      auto_block = false
      authentication {
        type = "username"
        username = "nexus"
        ntlm_host = ""
        ntlm_domain = ""
      }
  }

password λΌλŠ” ν•„λ“œλ₯Ό μ œκ³΅ν•˜λ €κ³  ν•˜λ©΄ λ‹€μŒκ³Ό 같은 λ©”μ‹œμ§€κ°€ λ‚˜νƒ€λ‚©λ‹ˆλ‹€.
An argument named "password" is not expected here.

enhancement

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

μ•ˆλ…•ν•˜μ„Έμš” μ—¬λŸ¬λΆ„,

이 속성은 Nexus 3.24.0 API λ‚΄μ—μ„œ λ¬Έμ„œν™”λ˜μ§€ μ•Šμ•˜μ§€λ§Œ μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€. ν˜„μž¬ κ΅¬ν˜„ μž‘μ—…μ„ ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

λͺ¨λ“  13 λŒ“κΈ€

λ„₯μ„œμŠ€ 버전 3.24.0
Nexus κ³΅κΈ‰μž 버전: v1.7.0

μ•ˆλ…•ν•˜μ„Έμš” @fog1985 ,

μž¬ν˜„ν•  수 μžˆλ„λ‘ μ™„μ „ν•œ TF λ¦¬μ†ŒμŠ€ μ½”λ“œλ₯Ό μ œκ³΅ν•΄ μ£Όμ‹œκ² μŠ΅λ‹ˆκΉŒ? maven ν”„λ‘μ‹œ μ €μž₯μ†Œλ₯Ό ν™•μΈν•˜λ €λŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.

μ•ˆλ…•ν•˜μ„Έμš” @Nosmoht μž…λ‹ˆλ‹€ .

λ„€. Maven ν”„λ‘μ‹œμž…λ‹ˆλ‹€.

resource "nexus_repository" "maven-release" {
  name   = "maven-release"
  format = "maven2"
  type   = "proxy"

  maven {
    version_policy = "SNAPSHOT"
    layout_policy = "STRICT"
  }

  http_client {
      blocked = false
      auto_block = false
      # authentication {
      #   type = "username"
      #   username = "nexus"
      #   ntlm_host = ""
      #   ntlm_domain = ""
      # }
  }

  negative_cache {
    enabled = false
    ttl     = 0
  }

  proxy {
    remote_url  = "https://remote_url/"
    metadata_max_age = "1440"
    content_max_age = "-1"
  }

  storage {
    blob_store_name                = "maven"
    strict_content_type_validation = true
    write_policy                     = "ALLOW"
  }
}

@fog1985 덕뢄에 이제 였λ₯˜λ₯Ό μž¬ν˜„ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

3.24.0으둜 μ—…κ·Έλ ˆμ΄λ“œν•œ ν›„ 이 였λ₯˜κ°€ λ°œμƒν•˜κΈ° μ‹œμž‘ν–ˆμŠ΅λ‹ˆλ‹€.
3.23.0μ—μ„œ λ™μΌν•œ μŠ€ν¬λ¦½νŠΈκ°€ μ œλŒ€λ‘œ μž‘λ™ν•©λ‹ˆλ‹€.

빈 http_client { } 블둝을 λ– λ‚œ ν›„ λͺ¨λ“  것이 μ œλŒ€λ‘œ μž‘λ™ν•˜κΈ° μ‹œμž‘ν–ˆμŠ΅λ‹ˆλ‹€.

λ‚΄ 메이븐 쀑앙: https://gist.github.com/android-leha/8f5729f6322dc4b943f735bf7f0573b2

μ•ˆλ…•ν•˜μ„Έμš” μ—¬λŸ¬λΆ„,

이 속성은 Nexus 3.24.0 API λ‚΄μ—μ„œ λ¬Έμ„œν™”λ˜μ§€ μ•Šμ•˜μ§€λ§Œ μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€. ν˜„μž¬ κ΅¬ν˜„ μž‘μ—…μ„ ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

이 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•΄ PR #64λ₯Ό λ§Œλ“€μ—ˆμŠ΅λ‹ˆλ‹€.

ν•˜μ§€λ§Œ λ‹€λ₯Έ λ¬Έμ œκ°€ μžˆμŠ΅λ‹ˆλ‹€.
@Nosmoht , μ•Œκ³  μžˆμ„ 수 μžˆμŠ΅λ‹ˆλ‹€.
이 ν™•μΈλž€λ„ ν‘œμ‹œν•΄μ•Ό ν•©λ‹ˆλ‹€.
image

API에 이 λ§€κ°œλ³€μˆ˜κ°€ μžˆμŠ΅λ‹ˆκΉŒ?

κ³„νšμ„ λ‹€μ‹œ μ‹€ν–‰ν•˜λ©΄ 이 ν‘œμ‹œκ°€ λΉ„ν™œμ„±ν™”λ©λ‹ˆλ‹€.

μ•ˆλ…•ν•˜μ„Έμš” μ—¬λŸ¬λΆ„, 이것 λ˜λŠ” #64에 λŒ€ν•œ μ†Œμ‹μ΄ μžˆμŠ΅λ‹ˆκΉŒ? 병합을 λ°©ν•΄ν•˜λŠ” 것이 μžˆμŠ΅λ‹ˆκΉŒ?

이번 주말에 λ³€κ²½ μ‚¬ν•­μœΌλ‘œ μƒˆ 릴리슀λ₯Ό λ§Œλ“€κ² μŠ΅λ‹ˆλ‹€. 계속 μ§€μΌœλ΄ μ£Όμ„Έμš” πŸ˜‰

ν•œ 가지 일이 λ‚¨μ•˜μŠ΅λ‹ˆλ‹€. Nexus APIλŠ” λΉ„λ°€λ²ˆν˜Έλ₯Ό λ°˜ν™˜ν•˜μ§€ μ•ŠμœΌλ―€λ‘œ μž…λ ₯ κ°’μ—μ„œ μƒνƒœλ‘œ μ„€μ •ν•΄μ•Ό ν•©λ‹ˆλ‹€.

@Nosmoht μ˜ˆκ°€ μžˆμŠ΅λ‹ˆκΉŒ? μ–΄λ–»κ²Œ ν•  수 μžˆμŠ΅λ‹ˆκΉŒ?

@android-leha μ •ν™•νžˆ 무엇을 μ˜λ―Έν•©λ‹ˆκΉŒ?

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰