-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
update artifactory store to allow anonymous access #1011
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
4301172
to
2a38feb
Compare
a57505b
to
a0aef07
Compare
a0aef07
to
3ab84c8
Compare
📝 WalkthroughWalkthroughThe pull request modifies the logic for handling the access token within the Artifactory store setup and updates the documentation accordingly. A conditional check is added to ensure that if the access token is set to "anonymous", it is not applied, altering the authentication behavior. The documentation reflects that the access token can now be explicitly defined as "anonymous" in the configuration, expanding the available authentication options. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant NewArtifactoryStore
participant ArtifactoryStore
Client->>NewArtifactoryStore: Call with access token
NewArtifactoryStore->>NewArtifactoryStore: Check if token equals "anonymous"
alt Token is "anonymous"
NewArtifactoryStore-->>ArtifactoryStore: Proceed without setting token
else Token is not "anonymous"
NewArtifactoryStore-->>ArtifactoryStore: Set token with provided value
end
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <erik@cloudposse.com>
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <erik@cloudposse.com>
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
website/docs/core-concepts/projects/configuration/stores.mdx (1)
89-89
: Enhance Grammatical Clarity in Security Note
The static analysis tool suggested adding the article “the” before the [!env
] function for better clarity. Consider updating the line to:
... In such cases, use the [
!env](/core-concepts/stacks/yaml-functions/env) function to reference tokens securely.
This minor change will improve the readability without altering the meaning.🧰 Tools
🪛 LanguageTool
[uncategorized] ~89-~89: You might be missing the article “the” here.
Context: ...erent access tokens. In such cases, use [!env
](/core-concepts/stacks/yaml-funct...(AI_EN_LECTOR_MISSING_DETERMINER_THE)
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
pkg/store/artifactory_store.go
(1 hunks)website/docs/core-concepts/projects/configuration/stores.mdx
(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- pkg/store/artifactory_store.go
🧰 Additional context used
🪛 LanguageTool
website/docs/core-concepts/projects/configuration/stores.mdx
[uncategorized] ~89-~89: You might be missing the article “the” here.
Context: ...erent access tokens. In such cases, use [!env
](/core-concepts/stacks/yaml-funct...
(AI_EN_LECTOR_MISSING_DETERMINER_THE)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Build (windows-latest, windows)
- GitHub Check: Summary
🔇 Additional comments (1)
website/docs/core-concepts/projects/configuration/stores.mdx (1)
86-87
: Clarify Anonymous Access Documentation
The newly added lines clearly explain that users can specify the access token asanonymous
to use the anonymous user for accessing Artifactory repositories. This directly supports the PR objective of enabling anonymous access. Please ensure that this documentation remains in sync with the corresponding conditional logic in the Artifactory store implementation.
what
why
references
Summary by CodeRabbit